Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Version 1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thesurix committed Aug 28, 2020
1 parent 0bc5257 commit 7301eca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -140,7 +140,7 @@ val gestureManager = GestureManager.Builder(recyclerView)
### Data callbacks:
```kotlin
adapter.setDataChangeListener(object : GestureAdapter.OnDataChangeListener<MonthItem> {
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) {
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7301eca

Please sign in to comment.