ListItemRevealLayout

Layout that is intended to be used as the android.view.ViewGroup that is revealed when a a SwipeableListItem is swiped. This layout always measures its width intrinsically, and uses its direct children's intrinsic width ratios to re-size them accordingly when the layout width changes.

Eg. If ListItemRevealLayout has an intrinsic width of 100 pixels with the first child having an intrinsic width of 20 and the second child having an intrinsic width of 80, when the ListItemRevealLayout changes to a width of 50, the ratios will be kept the same. The first child will have a width of 10 and the second will have a width of 40.

ListItemRevealLayout will be measured at 0 pixels if the desired width is not set.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Properties

Link copied to clipboard
@get:Px
open val intrinsicWidth: Int
Link copied to clipboard
@get:Px
open var minChildWidth: Int
Link copied to clipboard

Functions

Link copied to clipboard
Resets the intrinsic width remembered by the ListItemRevealLayout.
Link copied to clipboard
open fun setRevealedWidth(revealedWidth: Int)
Sets the revealed width of RevealableListItem, in pixels.