doublelift / com.skydoves.doublelift / DoubleLiftLayout

DoubleLiftLayout

class DoubleLiftLayout : FrameLayout

DoubleLiftLayout expands and collapses a layout's horizontal and vertical sequentially.

Types

Builder

class Builder

Builder class for creating DoubleLiftLayout.

Constructors

<init>

DoubleLiftLayout(context: Context)
DoubleLiftLayout(context: Context, attributeSet: AttributeSet)
DoubleLiftLayout(context: Context, attributeSet: AttributeSet, defStyle: Int)

Properties

autoCollapse

var autoCollapse: Boolean

autoExpand

var autoExpand: Boolean

cornerRadius

var cornerRadius: Int

foldedHeight

var foldedHeight: Int

foldedWidth

var foldedWidth: Int

isExpanded

var isExpanded: Boolean

liftedHeight

var liftedHeight: Int

liftedWith

var liftedWith: Int

liftHorizontalDuration

var liftHorizontalDuration: Long

liftStartOrientation

var liftStartOrientation: LiftStartOrientation

liftVerticalDuration

var liftVerticalDuration: Long

onExpandListener

var onExpandListener: OnExpandListener?

Functions

collapse

fun collapse(doAfterLift: () -> Unit = {}): Unit

Collapse the width and height size sequentially.

expand

fun expand(doAfterLift: () -> Unit = {}): Unit

Expand the width and height size sequentially.

onFinishInflate

fun onFinishInflate(): Unit

setOnExpandListener

fun setOnExpandListener(block: (Boolean) -> Unit): Unit

Sets an OnExpandListener using a lambda.