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"
替换它。
参考: