Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrme2014 committed Oct 12, 2017
2 parents e0e7540 + 3f3286e commit 57a5fbb
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
# ItemTouchHelper
ItemTouchHelper修改源码实现非侵入式侧滑菜单,长按拖拽
[![](https://jitpack.io/v/mrme2014/ItemTouchHelper.svg)](https://jitpack.io/#mrme2014/ItemTouchHelper)

使用方式:

#集成依赖:
```java
step 1.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
step 2.
dependencies {
compile 'com.github.mrme2014:ItemTouchHelper:v1.0'
}
#代码使用方式:
ItemTouchHelperCallback callback = new ItemTouchHelperCallback(ItemTouchHelperCallback.DRAG_FLAGS_VERTICAL,adapter);
ItemTouchHelper helper = new ItemTouchHelper(callback);
helper.attachToRecyclerView(recylerView);

运行时图
```

#运行时图

![image](https://github.com/mrme2014/ItemTouchHelper/raw/master/imgs/1.gif)

0 comments on commit 57a5fbb

Please sign in to comment.