Anko-ExpandableTextView

An expandable Android TextView written in Kotlin

View the Project on GitHub

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

toggle

@JvmOverloads fun toggle(withAnimation: Boolean = true): Boolean

Expands this ExpandableTextView if the state is Collapsed, collapses if the state is Expanded and does nothing otherwise.

Parameters

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

Return true if ExpandableTextView started expanding/collapsing, false otherwise.