File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments