Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
woxblom committed Jul 26, 2017
1 parent ae70a6f commit 5fa2268
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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.4.5'
compile 'com.github.woxthebox:draglistview:1.4.6'
}

Add this to proguard rules, otherwise animations won't work correctly
Expand Down Expand Up @@ -148,12 +148,15 @@ List and Grid layouts are used as example in the sample project.

For a board, which is a number of horizontal columns with lists, then use BoardView. For an example with custom animations
check the sample code. A custom header view can also be used when adding a column. This can be any view and will be attached to
the top of the column.
the top of the column. There are many different features that you can toggle on the BoardView as seen below. You read about them
in the java doc of each method.

mBoardView = (BoardView) view.findViewById(R.id.board_view);
mBoardView.setSnapToColumnsWhenScrolling(true);
mBoardView.setSnapToColumnWhenDragging(true);
mBoardView.setSnapDragItemToTouch(true);
mBoardView.setSnapToColumnInLandscape(false);
mBoardView.setColumnSnapPosition(BoardView.ColumnSnapPosition.CENTER);
mBoardView.setBoardListener(new BoardView.BoardListener() {
@Override
public void onItemDragStarted(int column, int row) {
Expand Down

0 comments on commit 5fa2268

Please sign in to comment.