File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,29 @@ a android layout widget for horizontal drag refresh action (viewpager or recycle
33-----
44![ ] ( https://github.com/29995270/HorizontalRefreshLayout/blob/master/art.gif " viewpager ")
55<br >
6+
7+ dependencies
8+ _____
9+
10+ Step 1. Add the JitPack repository to your build file
11+
12+ Add it in your root build.gradle at the end of repositories:
13+ ```
14+ allprojects {
15+ repositories {
16+ ...
17+ maven { url "https://jitpack.io" }
18+ }
19+ }
20+ ```
21+
22+ Step 2. Add the dependency
23+ ```
24+ dependencies {
25+ compile 'com.github.29995270:HorizontalRefreshLayout:1.0.0'
26+ }
27+ ```
28+
629how to use
730-----
831``` xml
@@ -31,6 +54,8 @@ how to use
3154 HorizontalRefreshLayout . END );
3255
3356 refreshLayout. setRefreshCallback(this );
57+
58+ // refreshLayout.startAutoRefresh(true); // if you want to refresh in code
3459
3560 @Override
3661 public void onLeftRefreshing() {
You can’t perform that action at this time.
0 commit comments