Skip to content

Commit

Permalink
Fixed so scrollposition is restored when rotating
Browse files Browse the repository at this point in the history
  • Loading branch information
woxblom committed Mar 21, 2018
1 parent 155a5b9 commit 4748a34
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ YouTube demo video<br>
}

dependencies {
compile 'com.github.woxthebox:draglistview:1.5.3'
compile 'com.github.woxthebox:draglistview:1.5.4'
}

Add this to proguard rules, otherwise animations won't work correctly
Expand Down
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.5.3
VERSION_CODE=45
VERSION_NAME=1.5.4
VERSION_CODE=46
GROUP=com.github.woxthebox

POM_DESCRIPTION=Drag and drop to re-order items in a list, grid or board.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ public void setCustomDragItem(DragItem dragItem) {

public DragItemRecyclerView addColumnList(final DragItemAdapter adapter, final View header, boolean hasFixedItemSize) {
final DragItemRecyclerView recyclerView = (DragItemRecyclerView) LayoutInflater.from(getContext()).inflate(R.layout.drag_item_recycler_view, this, false);
recyclerView.setId(getColumnCount());
recyclerView.setHorizontalScrollBarEnabled(false);
recyclerView.setVerticalScrollBarEnabled(false);
recyclerView.setMotionEventSplittingEnabled(false);
Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/layout/drag_item_recycler_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<com.woxthebox.draglistview.DragItemRecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drag_item_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical|horizontal"/>

0 comments on commit 4748a34

Please sign in to comment.