An expandable Android TextView written in Kotlin
expandable-textview / tm.charlie.expandabletextview / ExpandableTextView / 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.
withAnimation
- should it toggle with animation or instantaneously. true by default.
Return true if ExpandableTextView started expanding/collapsing, false otherwise.