Skip to content

Commit fe5c37b

Browse files
authored
Update README.md
1 parent bfbf3ea commit fe5c37b

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
## 使用方法
66

7+
### 添加依赖
8+
9+
1. 添加仓库到根build.gradle文件
10+
``` gradle
11+
allprojects {
12+
repositories {
13+
...
14+
maven { url 'https://jitpack.io' }
15+
}
16+
}
17+
```
18+
2. 添加库依赖
19+
``` gradle
20+
dependencies {
21+
implementation 'com.github.wangmingshuo:XPullToRefresh:Tag'
22+
}
23+
````
24+
25+
726
- 使用下拉刷新,只需要把要刷新布局嵌套在 PullToRefreshLayout里。
827
928
```

0 commit comments

Comments
 (0)