Skip to content

Commit 0f10664

Browse files
committed
issue fix: add get recyclerview interface
1 parent c507c02 commit 0f10664

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,25 @@
4646
![manual](https://github.com/ssseasonnn/PracticalRecyclerView/blob/master/gif/manual.gif?raw=true)
4747

4848

49+
### 2016-10-17 更新:
50+
51+
- 增加获取RecyclerView接口
52+
53+
```java
54+
public RecyclerView get() {
55+
return mRecyclerView;
56+
}
57+
```
58+
59+
60+
4961
### 使用方式:
5062

5163
1.添加Gradle依赖
5264

5365
```groovy
5466
dependencies{
55-
compile 'compile 'zlc.season:practicalrecyclerview:1.0.3'
67+
compile 'zlc.season:practicalrecyclerview:1.0.4'
5668
}
5769
```
5870
2.在布局文件中添加PracticalRecyclerView

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.2.0'
8+
classpath 'com.android.tools.build:gradle:2.2.1'
99
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
1010
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1111
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'

practicalrecyclerview/bintray.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.github.dcendents.android-maven'
22
apply plugin: 'com.jfrog.bintray'
33

44
// This is the library version used when deploying the artifact
5-
version = "1.0.3"
5+
version = "1.0.4"
66

77
def siteUrl = 'https://github.com/ssseasonnn/PracticalRecyclerView' // 项目的主页
88
def gitUrl = 'https://github.com/ssseasonnn/PracticalRecyclerView.git' // Git仓库的url

practicalrecyclerview/src/main/java/zlc/season/practicalrecyclerview/PracticalRecyclerView.java

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public void configureView(Configure configure) {
9797
configure.configureLoadMoreFailedView(mLoadMoreFailedView);
9898
}
9999

100+
public RecyclerView get() {
101+
return mRecyclerView;
102+
}
103+
100104
public void setRefreshListener(OnRefreshListener refreshListener) {
101105
if (refreshListener == null) return;
102106
mSwipeRefreshLayout.setEnabled(true);

0 commit comments

Comments
 (0)