Skip to content

DraggableView 0.2.0

Compare
Choose a tag to compare
@hyuwah hyuwah released this 20 Sep 02:18
· 13 commits to master since this release

Add kotlin extensions function to apply draggable behaviour to any View

Usage:

View.makeDraggable(stickyAxis: Constants.STICKY, animated: Boolean)

stickyAxis is set to NONE and animated is set to true by default if no parameters are passed

To costumize it, you can use the following:

stickyAxis :

  • Constants.STICKY.NONE
  • Constants.STICKY.AXIS_X
  • Constants.STICKY.AXIS_Y
  • Constants.STICKY.AXIS_XY

animated : true or false