RevealableListItem


public interface RevealableListItem

Known direct subclasses
ListItemRevealLayout

Layout that is intended to be used as the android.view.ViewGroup that is revealed when a a SwipeableListItem is swiped.


Interface for the part of a ListItem that is able to be revealed when swiped.

Summary

Constants

default static final int

When swiping with a sibling SwipeableListItem, swipe directly to the primary action.

default static final int

Disable the primary action.

default static final int

When swiping with a sibling SwipeableListItem, allow swiping to intermediary states before the primary action.

Public methods

abstract int

Returns the intrinsic width of the RevealableListItem.

abstract int

Returns the PrimaryActionSwipeMode for the RevealableListItem that defines the swipe to primary action behavior when swiping with a sibling SwipeableListItem.

abstract void
setPrimaryActionSwipeMode(int swipeToPrimaryActionMode)

Sets the PrimaryActionSwipeMode for the RevealableListItem that defines the swipe to primary action behavior when swiping with a sibling SwipeableListItem.

abstract void
setRevealedWidth(int revealedWidth)

Sets the revealed width of RevealableListItem, in pixels.

Constants

PRIMARY_ACTION_SWIPE_DIRECT

default static final int PRIMARY_ACTION_SWIPE_DIRECT = 2

When swiping with a sibling SwipeableListItem, swipe directly to the primary action.

PRIMARY_ACTION_SWIPE_DISABLED

default static final int PRIMARY_ACTION_SWIPE_DISABLED = 0

Disable the primary action.

PRIMARY_ACTION_SWIPE_INDIRECT

default static final int PRIMARY_ACTION_SWIPE_INDIRECT = 1

When swiping with a sibling SwipeableListItem, allow swiping to intermediary states before the primary action.

Public methods

getIntrinsicWidth

abstract int getIntrinsicWidth()

Returns the intrinsic width of the RevealableListItem. This may be 0 if an intrinsic width has not yet been measured.

getPrimaryActionSwipeMode

abstract int getPrimaryActionSwipeMode()

Returns the PrimaryActionSwipeMode for the RevealableListItem that defines the swipe to primary action behavior when swiping with a sibling SwipeableListItem.

setPrimaryActionSwipeMode

abstract void setPrimaryActionSwipeMode(int swipeToPrimaryActionMode)

Sets the PrimaryActionSwipeMode for the RevealableListItem that defines the swipe to primary action behavior when swiping with a sibling SwipeableListItem.

setRevealedWidth

abstract void setRevealedWidth(int revealedWidth)

Sets the revealed width of RevealableListItem, in pixels.