ListItemCardView

A MaterialCardView that is styled as a list item and can be swiped in a ListItemLayout with a sibling RevealableListItem.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, @AttrRes defStyleAttr: Int)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, @StyleRes defStyleRes: Int)

Types

Link copied to clipboard
abstract class SwipeCallback
Callback for changes to the SwipeState of the ListItemCardView.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Add a callback to be invoked when the swipe state of the SwipeableListItem changes.
Link copied to clipboard
Whether or not to allow the SwipeableListItem to be swiped.
Link copied to clipboard
open fun onSwipe(@Px swipeOffset: Int)
Called when the position of the SwipeableListItem changes.
Link copied to clipboard
open fun <T : View?, RevealableListItem?> onSwipeStateChanged(swipeState: Int, revealableListItem: T, revealGravity: Int)
Callback for when the swipe state of the SwipeableListItem changes.
Link copied to clipboard
Remove the specified callback from being called when the swipe state of the SwipeableListItem changes.
Link copied to clipboard
open fun setSwipeEnabled(swipeEnabled: Boolean)
Whether or not to enabling swiping when there is a sibling RevealableListItem.