I have a multi-line TextView that has android:ellipsize=\"end\" set. I would like to know, however, if the string I place in there is actually too
TextView
android:ellipsize=\"end\"
The Kotlin way:
textView.post { if (textView.lineCount > MAX_LINES_COLLAPSED) { // text is not fully displayed } }
Actually View.post() is executed after the view has been rendered and will run the function provided
View.post()