您的位置:首页 > 其它

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

2012-08-24 22:47 337 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: