最佳答案
我有一个多线 TextView
的 android:ellipsize="end"
集。我想知道,但是,如果我放在那里的字符串实际上太长(这样我可以确保完整的字符串显示在页面的其他地方)。
我可以使用 TextView.length()
并找出字符串的大致长度,但是由于它是多行的,所以 TextView
处理什么时候换行,所以这并不总是有效。
有什么想法吗?