@@ -32,7 +32,7 @@ When I start to make this library, I set some goals:
3232
3333``` groovy
3434dependencies {
35- compile "com.daimajia.swipelayout:library:1.0.0 @aar"
35+ compile "com.daimajia.swipelayout:library:1.0.1 @aar"
3636}
3737```
3838
@@ -42,51 +42,17 @@ dependencies {
4242<dependency >
4343 <groupId >com.daimajia.swipelayout</groupId >
4444 <artifactId >library</artifactId >
45- <version >1.0.0 </version >
45+ <version >1.0.1 </version >
4646 <type >apklib</type >
4747</dependency >
4848```
4949
5050#### Eclipse
5151
52+ [ AndroidSwipeLayout-v1.0.1.jar] ( https://github.com/daimajia/AndroidSwipeLayout/releases/download/v1.0.1/AndroidSwipeLayout-v1.0.1.jar )
5253
5354### Step 2
5455
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 ) .
9056[ Wiki Usage] ( https://github.com/daimajia/AndroidSwipeLayout/wiki/usage )
9157
9258## Wiki
0 commit comments