Skip to content

Commit

Permalink
YCRefreshView
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchong211 committed Mar 20, 2018
1 parent c59f890 commit 7f550ef
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 122 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- 轻量级侧滑删除菜单,支持recyclerView,listView,直接嵌套item布局即可使用,整个侧滑菜单思路是:跟随手势将item向左滑动
- 该库已经用到了实际开发项目中,会持续更新并且修改bug。如果觉得可以,**可以star一下**,多谢支持!
- 感谢前辈大神们案例及开源分享精神。
- 一行代码集成:compile 'org.yczbj:YCRefreshViewLib:2.4'
- 一行代码集成:compile 'org.yczbj:YCRefreshViewLib:2.5'
- 项目地址:https://github.com/yangchong211/YCRefreshView
- GitHub地址:https://github.com/yangchong211

Expand Down Expand Up @@ -88,7 +88,7 @@


### 3.如何使用介绍
- 3.1 首先在集成:compile 'org.yczbj:YCRefreshViewLib:2.4'
- 3.1 首先在集成:compile 'org.yczbj:YCRefreshViewLib:2.5'
- 3.2 在布局中:
```
<org.yczbj.ycrefreshviewlib.YCRefreshView
Expand Down
4 changes: 2 additions & 2 deletions YCRefreshViewLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ group = "org.yczbj"
//发布到JCenter上的项目名字,必须填写
def libName = "YCRefreshViewLib"
// 版本号,下次更新是只需要更改版本号即可
version = "2.4"
/** 上面配置后上传至jcenter后的编译路径是这样的: compile 'cn.yc:YCRefreshViewLib:2.4' **/
version = "2.5"
/** 上面配置后上传至jcenter后的编译路径是这样的: compile 'cn.yc:YCRefreshViewLib:2.5' **/

//生成源文件
task sourcesJar(type: Jar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ protected void initRecyclerView(View view) {
}
}

/**
* 初始化滚动监听事件
*/
private void initScrollListener() {
mInternalOnScrollListener = new RecyclerView.OnScrollListener() {
@Override
Expand Down Expand Up @@ -549,6 +552,7 @@ public RecyclerView.Adapter getAdapter() {
}


@Override
@SuppressLint("ClickableViewAccessibility")
public void setOnTouchListener(OnTouchListener listener) {
mRecycler.setOnTouchListener(listener);
Expand Down
Loading

0 comments on commit 7f550ef

Please sign in to comment.