From d7c14343b48321766e6bf6f3719cdb9262861f77 Mon Sep 17 00:00:00 2001 From: MichaelFlisar Date: Wed, 25 Jan 2017 12:50:42 +0100 Subject: [PATCH] update --- README.md | 4 ++-- library/build.gradle | 2 +- .../dragselectrecyclerview/DragSelectTouchListener.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a53b707..5be8936 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ It's a simple one class `TouchListener` that can be attached to any RecyclerView ```groovy dependencies { - compile 'com.github.MFlisar:DragSelectRecyclerView:0.1' + compile 'com.github.MFlisar:DragSelectRecyclerView:0.2' } ``` @@ -47,7 +47,7 @@ It's a simple one class `TouchListener` that can be attached to any RecyclerView 2. attach it to the `RecyclerView` ``` - recyclerView.addOnItemTouchListener(mDragSelectTouchListener); + recyclerView.startDragSelection(mDragSelectTouchListener); ``` 3. on item long press, inform the listener so that it can start doing it's magic diff --git a/library/build.gradle b/library/build.gradle index 9e3fec9..173c223 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -18,7 +18,7 @@ android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { - minSdkVersion 16 + minSdkVersion 14 targetSdkVersion 24 } } diff --git a/library/src/main/java/com/michaelflisar/dragselectrecyclerview/DragSelectTouchListener.java b/library/src/main/java/com/michaelflisar/dragselectrecyclerview/DragSelectTouchListener.java index bfe5c05..d374f14 100644 --- a/library/src/main/java/com/michaelflisar/dragselectrecyclerview/DragSelectTouchListener.java +++ b/library/src/main/java/com/michaelflisar/dragselectrecyclerview/DragSelectTouchListener.java @@ -170,7 +170,7 @@ public DragSelectTouchListener withDebug(boolean enabled) * * @param position the index of the first selected item */ - public void setStartSelectPosition(int position) + public void startDragSelection(int position) { setIsActive(true); mStart = position;