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

Commit

Permalink
Version 1.3.0 - Undo feature
Browse files Browse the repository at this point in the history
  • Loading branch information
thesurix committed Apr 18, 2016
1 parent 0756b22 commit b07174f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This library provides swipe & drag and drop support for RecyclerView. Based on g
# Features
* item click/long press/double tap listener
* empty view
* undo
* swipe
* long press drag
* manual mode drag
Expand All @@ -24,7 +25,7 @@ To use this library in your android project, just simply add the following depen

```sh
dependencies {
compile 'com.thesurix.gesturerecycler:gesture-recycler:1.2.0'
compile 'com.thesurix.gesturerecycler:gesture-recycler:1.3.0'
}
```

Expand Down Expand Up @@ -127,7 +128,14 @@ recyclerView.addOnItemTouchListener(new RecyclerItemTouchListener(getActivity(),
final View emptyView = view.findViewById(R.id.empty_view);
adapter.setEmptyView(emptyView);
```
### Undo:
```java
// Undo last data transaction (add, insert, remove, swipe, reorder)
adapter.undoLast();

// Set undo stack size
adapter.setUndoSize(2);
```

## Old way (v1.0.0):
To enable swipe/drag and drop support:
Expand Down Expand Up @@ -160,7 +168,6 @@ See examples.

# To do
* background view for swipeable items
* undo?
* tests?

# Licence
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.library'

def version = '1.2.0'
def version = '1.3.0'

ext {
PUBLISH_GROUP_ID = 'com.thesurix.gesturerecycler'
Expand Down

0 comments on commit b07174f

Please sign in to comment.