@@ -32,7 +32,7 @@ When I start to make this library, I set some goals:
32
32
33
33
``` groovy
34
34
dependencies {
35
- compile "com.daimajia.swipelayout:library:1.0.0 @aar"
35
+ compile "com.daimajia.swipelayout:library:1.0.1 @aar"
36
36
}
37
37
```
38
38
@@ -42,51 +42,17 @@ dependencies {
42
42
<dependency >
43
43
<groupId >com.daimajia.swipelayout</groupId >
44
44
<artifactId >library</artifactId >
45
- <version >1.0.0 </version >
45
+ <version >1.0.1 </version >
46
46
<type >apklib</type >
47
47
</dependency >
48
48
```
49
49
50
50
#### Eclipse
51
51
52
+ [ AndroidSwipeLayout-v1.0.1.jar] ( https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.0.1/AndroidSwipeLayout-v1.0.1.jar )
52
53
53
54
### Step 2
54
55
55
- Create a ` SwipeLayout ` :
56
-
57
- - ` SwipeLayout ` must have 2 children (all should be an instance of ` ViewGroup ` ).
58
-
59
- ``` xml
60
- <com .daimajia.swipe.SwipeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
61
- android : layout_width =" match_parent" android : layout_height =" 80dp" >
62
- <!-- Bottom View Start-->
63
- <LinearLayout
64
- android : background =" #66ddff00"
65
- android : id =" @+id/bottom_wrapper"
66
- android : layout_width =" 160dp"
67
- android : weightSum =" 1"
68
- android : layout_height =" match_parent" >
69
- <!-- What you want to show-->
70
- </LinearLayout >
71
- <!-- Bottom View End-->
72
-
73
- <!-- Surface View Start -->
74
- <LinearLayout
75
- android : padding =" 10dp"
76
- android : background =" #ffffff"
77
- android : layout_width =" match_parent"
78
- android : layout_height =" match_parent" >
79
- <!-- What you want to show in SurfaceView-->
80
- </LinearLayout >
81
- <!-- Surface View End -->
82
- </com .daimajia.swipe.SwipeLayout>
83
- ```
84
-
85
- There are some preset examples: [ example1] ( ./demo/src/main/res/layout/sample1.xml ) , [ example2] ( ./demo/src/main/res/layout/sample2.xml ) , [ example3] ( ./demo/src/main/res/layout/sample3.xml ) .
86
-
87
- ### Step3
88
-
89
- [ Source code] ( ./demo/src/main/java/com/daimajia/swipedemo/MyActivity.java ) .
90
56
[ Wiki Usage] ( https://github.com/daimajia/AndroidSwipeLayout/wiki/usage )
91
57
92
58
## Wiki
0 commit comments