Skip to content

Commit a5dc35c

Browse files
committed
Cleanup xml files
1 parent b96ece8 commit a5dc35c

File tree

2 files changed

+26
-29
lines changed

2 files changed

+26
-29
lines changed

sample/src/main/res/layout/activity_main.xml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
1+
<?xml version="1.0" encoding="utf-8"?><!--
32
~ Copyright © 2016-2018 Łukasz Rutkowski
43
~
54
~ Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,8 +14,7 @@
1514
~ limitations under the License.
1615
-->
1716

18-
<ScrollView
19-
xmlns:android="http://schemas.android.com/apk/res/android"
17+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2018
xmlns:app="http://schemas.android.com/apk/res-auto"
2119
xmlns:tools="http://schemas.android.com/tools"
2220
android:layout_width="match_parent"
@@ -33,11 +31,11 @@
3331
android:id="@+id/swipe_right"
3432
style="@style/SwipeItem">
3533

36-
<ImageView style="@style/Icon"/>
34+
<ImageView style="@style/Icon" />
3735

3836
<TextView
3937
style="@style/Container"
40-
android:text="@string/can_swipe_right"/>
38+
android:text="@string/can_swipe_right" />
4139
</me.thanel.swipeactionview.SwipeActionView>
4240

4341
<me.thanel.swipeactionview.SwipeActionView
@@ -46,27 +44,27 @@
4644

4745
<ImageView
4846
style="@style/Icon"
49-
android:layout_gravity="end|center_vertical"/>
47+
android:layout_gravity="end|center_vertical" />
5048

5149
<TextView
5250
style="@style/Container"
53-
android:text="@string/can_swipe_left"/>
51+
android:text="@string/can_swipe_left" />
5452
</me.thanel.swipeactionview.SwipeActionView>
5553

5654
<me.thanel.swipeactionview.SwipeActionView
5755
android:id="@+id/swipe_both"
5856
style="@style/SwipeItem"
5957
app:sav_tools_previewBackground="swipeLeft">
6058

61-
<ImageView style="@style/Icon"/>
59+
<ImageView style="@style/Icon" />
6260

6361
<ImageView
6462
style="@style/Icon"
65-
android:layout_gravity="end|center_vertical"/>
63+
android:layout_gravity="end|center_vertical" />
6664

6765
<TextView
6866
style="@style/Container"
69-
android:text="@string/can_swipe_in_both_directions"/>
67+
android:text="@string/can_swipe_in_both_directions" />
7068
</me.thanel.swipeactionview.SwipeActionView>
7169

7270
<me.thanel.swipeactionview.SwipeActionView
@@ -76,16 +74,16 @@
7674
app:sav_swipeRightRippleColor="@color/colorAccent"
7775
app:sav_tools_previewRipple="swipeRight">
7876

79-
<ImageView style="@style/Icon"/>
77+
<ImageView style="@style/Icon" />
8078

8179
<ImageView
8280
style="@style/Icon"
83-
android:layout_gravity="end|center_vertical"/>
81+
android:layout_gravity="end|center_vertical" />
8482

8583
<TextView
8684
style="@style/Container"
8785
android:elevation="8dp"
88-
android:text="@string/animated_ripple"/>
86+
android:text="@string/animated_ripple" />
8987
</me.thanel.swipeactionview.SwipeActionView>
9088

9189
<me.thanel.swipeactionview.SwipeActionView
@@ -94,11 +92,11 @@
9492
app:sav_swipeLeftRippleColor="@color/colorPrimary"
9593
app:sav_tools_previewRipple="swipeLeft">
9694

97-
<ImageView style="@style/Icon"/>
95+
<ImageView style="@style/Icon" />
9896

9997
<ImageView
10098
style="@style/Icon"
101-
android:layout_gravity="end|center_vertical"/>
99+
android:layout_gravity="end|center_vertical" />
102100

103101
<androidx.cardview.widget.CardView
104102
android:layout_width="match_parent"
@@ -108,30 +106,30 @@
108106

109107
<TextView
110108
style="@style/Container"
111-
android:text="@string/swipe_able_card_view"/>
109+
android:text="@string/swipe_able_card_view" />
112110
</androidx.cardview.widget.CardView>
113111
</me.thanel.swipeactionview.SwipeActionView>
114112

115113
<me.thanel.swipeactionview.SwipeActionView
116114
android:id="@+id/swipe_delayed"
117115
style="@style/SwipeItem">
118116

119-
<ImageView style="@style/Icon"/>
117+
<ImageView style="@style/Icon" />
120118

121119
<ImageView
122120
style="@style/Icon"
123-
android:layout_gravity="end|center_vertical"/>
121+
android:layout_gravity="end|center_vertical" />
124122

125123
<TextView
126124
style="@style/Container"
127-
android:text="@string/returns_after_delay"/>
125+
android:text="@string/returns_after_delay" />
128126
</me.thanel.swipeactionview.SwipeActionView>
129127

130128
<me.thanel.swipeactionview.SwipeActionView
131129
android:id="@+id/swipe_layout"
132130
style="@style/SwipeItem">
133131

134-
<ImageView style="@style/Icon"/>
132+
<ImageView style="@style/Icon" />
135133

136134
<TextView
137135
android:layout_width="90dp"
@@ -140,41 +138,41 @@
140138
android:gravity="center"
141139
android:padding="8dp"
142140
android:text="@string/can_be_customized"
143-
android:textColor="@android:color/white"/>
141+
android:textColor="@android:color/white" />
144142

145143
<LinearLayout style="@style/Container">
146144

147145
<ImageView
148146
android:layout_width="50dp"
149147
android:layout_height="50dp"
150148
android:layout_gravity="center_vertical"
151-
android:src="@mipmap/ic_launcher"/>
149+
android:src="@mipmap/ic_launcher" />
152150

153151
<LinearLayout
154152
android:layout_width="match_parent"
155153
android:layout_height="wrap_content"
156-
android:layout_marginLeft="@dimen/activity_horizontal_margin"
157154
android:layout_marginStart="@dimen/activity_horizontal_margin"
155+
android:layout_marginLeft="@dimen/activity_horizontal_margin"
158156
android:orientation="vertical">
159157

160158
<TextView
161159
style="@style/TextAppearance.AppCompat.Title"
162160
android:layout_width="match_parent"
163161
android:layout_height="wrap_content"
164162
android:layout_marginBottom="8dp"
165-
android:text="@string/advanced_layout"/>
163+
android:text="@string/advanced_layout" />
166164

167165
<TextView
168166
style="@style/TextAppearance.AppCompat.Body1"
169167
android:layout_width="match_parent"
170168
android:layout_height="wrap_content"
171-
android:text="@string/full_control"/>
169+
android:text="@string/full_control" />
172170

173171
<Button
174172
android:id="@+id/button"
175173
android:layout_width="match_parent"
176174
android:layout_height="wrap_content"
177-
android:text="@string/click_me"/>
175+
android:text="@string/click_me" />
178176
</LinearLayout>
179177
</LinearLayout>
180178
</me.thanel.swipeactionview.SwipeActionView>

sample/src/main/res/values/colors.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!--
1+
<?xml version="1.0" encoding="utf-8"?><!--
32
~ Copyright © 2016-2018 Łukasz Rutkowski
43
~
54
~ Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)