Skip to content

Commit 7da3056

Browse files
committed
Formatting
1 parent 046caa4 commit 7da3056

File tree

4 files changed

+405
-523
lines changed

4 files changed

+405
-523
lines changed

demo/src/main/java/com/daimajia/swipedemo/MyActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
135135
} else if (id == R.id.action_gridview) {
136136
startActivity(new Intent(this, GridViewExample.class));
137137
return true;
138-
} else if(id == R.id.action_nexted){
138+
} else if (id == R.id.action_nexted) {
139139
startActivity(new Intent(this, NestedExample.class));
140140
return true;
141141
}

demo/src/main/res/layout/sample1.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
<com.daimajia.swipe.SwipeLayout xmlns:android="http://schemas.android.com/apk/res/android"
44
android:background="@drawable/item_selector"
5-
android:layout_width="match_parent" android:layout_height="80dp">
5+
android:layout_width="match_parent"
6+
android:layout_height="80dp">
7+
68
<LinearLayout
79
android:tag="Bottom1"
810
android:background="#66ddff00"
911
android:id="@+id/bottom_wrapper"
1012
android:layout_width="160dp"
1113
android:weightSum="1"
1214
android:layout_height="match_parent">
15+
1316
<TextView
1417
android:id="@+id/archive"
1518
android:textColor="#fff"
@@ -19,6 +22,7 @@
1922
android:background="#FF1300"
2023
android:layout_width="wrap_content"
2124
android:layout_height="match_parent" />
25+
2226
<TextView
2327
android:id="@+id/delete"
2428
android:text="Delete"
@@ -33,6 +37,7 @@
3337
android:tag="Bottom4"
3438
android:layout_width="wrap_content"
3539
android:layout_height="match_parent">
40+
3641
<ImageView
3742
android:id="@+id/magnifier2"
3843
android:src="@drawable/magnifier"
@@ -41,6 +46,7 @@
4146
android:paddingLeft="25dp"
4247
android:paddingRight="25dp"
4348
android:layout_height="match_parent" />
49+
4450
<ImageView
4551
android:id="@+id/star2"
4652
android:src="@drawable/star"
@@ -49,6 +55,7 @@
4955
android:paddingLeft="25dp"
5056
android:paddingRight="25dp"
5157
android:layout_height="match_parent" />
58+
5259
<ImageView
5360
android:id="@+id/trash2"
5461
android:src="@drawable/trash"
@@ -64,6 +71,7 @@
6471
android:background="#ffffff"
6572
android:layout_width="match_parent"
6673
android:layout_height="match_parent">
74+
6775
<TextView
6876
android:tag="Hover"
6977
android:text="要有最樸素的生活和最遙遠的夢想,即使明天天寒地凍,山高水遠,路遠馬亡。"

0 commit comments

Comments
 (0)