Skip to content

Commit aeedede

Browse files
author
li-xiaojun
committed
update README
1 parent 51e7631 commit aeedede

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,40 @@ dependencies {
6565

6666
# Get Start
6767

68+
- make your layout
69+
70+
```xml
71+
<com.lxj.xrefreshlayout.XRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
72+
android:layout_width="match_parent"
73+
android:id="@+id/xrefreshLayout"
74+
android:layout_height="match_parent">
75+
76+
<android.support.v7.widget.RecyclerView
77+
android:id="@+id/recyclerview"
78+
android:layout_width="match_parent"
79+
android:layout_height="match_parent"/>
80+
81+
</com.lxj.xrefreshlayout.XRefreshLayout>
82+
```
83+
84+
或者
85+
86+
```xml
87+
<com.lxj.xrefreshlayout.XRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
88+
android:layout_width="match_parent"
89+
android:id="@+id/xrefreshLayout"
90+
android:layout_height="match_parent">
91+
92+
<android.support.v4.widget.NestedScrollView
93+
android:id="@+id/recyclerview"
94+
android:layout_width="match_parent"
95+
android:layout_height="match_parent"/>
96+
97+
</com.lxj.xrefreshlayout.XRefreshLayout>
98+
```
99+
100+
101+
68102
- set refresh listener
69103

70104
```java

0 commit comments

Comments
 (0)