Anko-ExpandableTextView

An expandable Android TextView written in Kotlin

View the Project on GitHub

expandable-textview / tm.charlie.expandabletextview / ExpandableTextView / expand

expand

@JvmOverloads fun expand(withAnimation: Boolean = true, forceExpand: Boolean = false): Boolean

Expands this ExpandableTextView if its state is Collapsed.

Parameters

withAnimation - should it collapse with animation or instantaneously. true by default.

forceExpand - expands this ExpandableTextView even if it is not in the collapsed state. false by default.

Return true if ExpandableTextView started expanding, false otherwise.