Skip to content

Commit 2fe8ca7

Browse files
committed
updata read me
1 parent d4a07b6 commit 2fe8ca7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
629
how 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() {

0 commit comments

Comments
 (0)