From 7301eca01f2350b4ec9eb73ab72179541c4abb04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Sur=C3=B3wka?= Date: Fri, 28 Aug 2020 10:24:40 +0200 Subject: [PATCH] Version 1.13.0 --- README.md | 8 ++++---- library/build.gradle | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 019de6b..e38c68f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ To use this library in your android project, just simply add the following depen ```sh dependencies { - implementation 'com.thesurix.gesturerecycler:gesture-recycler:1.12.0' + implementation 'com.thesurix.gesturerecycler:gesture-recycler:1.13.0' } ``` @@ -88,7 +88,7 @@ val gestureManager = GestureManager.Builder(recyclerView) ```kotlin // Override foregroundView, backgroundView() variables in ViewHolder to provide top and bottom view open val foregroundView: View - get() = foregound + get() = foreground open val backgroundView: View? get() = background @@ -127,7 +127,7 @@ val gestureManager = GestureManager.Builder(recyclerView) ```kotlin // Override foregroundView variable and getBackgroundView(direction: Int) method in ViewHolder to provide top and bottom views open val foregroundView: View - get() = foregound + get() = foreground override fun getBackgroundView(direction: Int): View? { //direction can be ItemTouchHelper.LEFT, ItemTouchHelper.RIGHT, ItemTouchHelper.UP, ItemTouchHelper.DOWN @@ -140,7 +140,7 @@ val gestureManager = GestureManager.Builder(recyclerView) ### Data callbacks: ```kotlin adapter.setDataChangeListener(object : GestureAdapter.OnDataChangeListener { - override fun onItemRemoved(item: MonthItem, position: Int) { + override fun onItemRemoved(item: MonthItem, position: Int, direction: Int) { } override fun onItemReorder(item: MonthItem, fromPos: Int, toPos: Int) { diff --git a/library/build.gradle b/library/build.gradle index e75af46..2a83b1f 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -15,7 +15,7 @@ ext { siteUrl = 'https://github.com/thesurix/gesture-recycler' gitUrl = 'https://github.com/thesurix/gesture-recycler.git' - libraryVersion = '1.12.0' + libraryVersion = '1.13.0' developerId = 'thesurix' developerName = 'Pawel Surowka'