I have a listView with custom objects defined by the xml-layout below. I want the textView with id "info" to be ellipsized on a single line, and I've tried using the attributes
android:singleLine="true"
android:ellipsize="end"
without success.
singleLine 被废弃了,可以使用:
android:lines="1"
android:scrollHorizontally="true"
替换它。
参考:
探讨在自定义ListView中,如何通过调整TextView的属性实现单行显示并使用省略号显示过长文本。

5249

被折叠的 条评论
为什么被折叠?



