Anko-ExpandableTextView

An expandable Android TextView written in Kotlin

View the Project on GitHub

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

State

enum class State

Enum representing current state of the ExpandableTextView.

Enum Values

Collapsed State, in which text is ellipsized and it is possible to expand it, if expandedLines is greater than collapsedLines.
Collapsing State, in which ExpandableTextView is in the progress of collapsing.
Expanding State, in which ExpandableTextView is in the progress of expanding.
Expanded State, in which text is expanded, with maximum number of displayed text lines equal to expandedLines.
Static State, in which either text can fit in specified number of collapsedLines without ellipsizing or collapsedLines equals expandedLines. ExpandableTextView will not expand or collapse in this state.