-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |