expandablelayout / com.skydoves.expandablelayout / ExpandableLayout

ExpandableLayout

class ExpandableLayout : FrameLayout

An expandable layout that shows a two-level layout with an indicator.

Types

Builder

class Builder

Builder class for creating ExpandableLayout.

Constructors

<init>

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

Properties

duration

var duration: Long

isExpanded

var isExpanded: Boolean

onExpandListener

var onExpandListener: OnExpandListener?

parentLayout

lateinit var parentLayout: ViewGroup

parentLayoutResource

var parentLayoutResource: Int

secondLayout

lateinit var secondLayout: ViewGroup

secondLayoutResource

var secondLayoutResource: Int

showSpinner

var showSpinner: Boolean

spinnerAnimate

var spinnerAnimate: Boolean

spinnerDrawable

var spinnerDrawable: Drawable?

spinnerMargin

var spinnerMargin: Float

spinnerRotation

var spinnerRotation: Int

spinnerSize

var spinnerSize: Float

Functions

collapse

fun collapse(): Unit

Collapse the second layout with indicator animation.

expand

fun expand(): Unit

Expand the second layout with indicator animation.

onFinishInflate

fun onFinishInflate(): Unit

setOnExpandListener

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

Sets the OnExpandListener using a lambda.