TextView 设置 Ellipsize 属性,但它不工作?

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"

替换它。


参考:

Ellipsize not working for textView inside custom listView

你可能感兴趣的:(工作,android,ListView)