setSwipeState

open fun <T : View?, RevealableListItem?> setSwipeState(swipeState: Int, @NonNull revealView: T)

Sets the state to swipe the SwipeableListItem child to.

Parameters

swipeState

The state to swipe to. This must be one of STATE_CLOSED, STATE_OPEN, or STATE_SWIPE_PRIMARY_ACTION

revealView

The RevealableListItem view to affect when setting the swipe state.


open fun <T : View?, RevealableListItem?> setSwipeState(swipeState: Int, @NonNull revealView: T, animate: Boolean)

Sets the state to swipe the SwipeableListItem child to.

Parameters

swipeState

The state to swipe to. This must be one of STATE_CLOSED, STATE_OPEN, or STATE_SWIPE_PRIMARY_ACTION

revealView

The RevealableListItem view to reveal when swiping.

animate

Whether to animate to the given swipe state.


open fun setSwipeState(swipeState: Int, revealGravity: Int)

Sets the state to swipe the SwipeableListItem child to.

Parameters

swipeState

The state to swipe to. This must be one of STATE_CLOSED, STATE_OPEN, or STATE_SWIPE_PRIMARY_ACTION

revealGravity

The gravity of the RevealableListItem to affect when setting the swipe state.


open fun setSwipeState(swipeState: Int, revealGravity: Int, animate: Boolean)

Sets the state to swipe the SwipeableListItem child to.

Parameters

swipeState

The state to swipe to. This must be one of STATE_CLOSED, STATE_OPEN, or STATE_SWIPE_PRIMARY_ACTION

revealGravity

The gravity of the RevealableListItem to reveal when swiping.

animate

Whether to animate to the given swipe state.