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 long (so that I may make sure the full string is shown elsewhere on the page).
I could use TextView.length()
and find about what the approximate length of string will fit, but since it's multiple lines, the TextView
handles when to wrap, so this won't always work.
Any ideas?