makeMovementFlags

open fun makeMovementFlags(dragFlags: Int, swipeFlags: Int): Int(source)

Convenience method to create movement flags.

For instance, if you want to let your items be drag &dropped vertically and swiped left to be dismissed, you can call this method with: makeMovementFlags(UP | DOWN, LEFT);

Return

Returns an integer composed of the given drag and swipe flags.

Parameters

dragFlags

The directions in which the item can be dragged.

swipeFlags

The directions in which the item can be swiped.