class ExpandableLayout : FrameLayout
An expandable layout that shows a two-level layout with an indicator.
class Builder
Builder class for creating ExpandableLayout. |
ExpandableLayout(context: Context) ExpandableLayout(context: Context, attributeSet: AttributeSet) ExpandableLayout(context: Context, attributeSet: AttributeSet, defStyle: Int) |
var duration: Long |
|
var isExpanded: Boolean |
|
var onExpandListener: OnExpandListener? |
|
lateinit var parentLayout: ViewGroup |
|
var parentLayoutResource: Int |
|
lateinit var secondLayout: ViewGroup |
|
var secondLayoutResource: Int |
|
var showSpinner: Boolean |
|
var spinnerAnimate: Boolean |
|
var spinnerDrawable: Drawable? |
|
var spinnerMargin: Float |
|
var spinnerRotation: Int |
|
var spinnerSize: Float |
fun collapse(): Unit
Collapse the second layout with indicator animation. |
|
fun expand(): Unit
Expand the second layout with indicator animation. |
|
fun onFinishInflate(): Unit |
|
fun setOnExpandListener(block: (Boolean) -> Unit): Unit
Sets the OnExpandListener using a lambda. |