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
without success.
singleLine 被废弃了,可以使用:
替换它。
参考:
Ellipsize not working for textView inside custom listView
android:singleLine="true" android:ellipsize="end"
without success.
singleLine 被废弃了,可以使用:
android:lines="1" android:scrollHorizontally="true"
替换它。
参考:
Ellipsize not working for textView inside custom listView
相关文章推荐
- Android控件TextView中ellipsize属性(设置当文字长度超过textview宽度时的显示方式)
- TextView设置属性ellipsize
- android中给TextView设置属性ellipsize
- TextView设置属性ellipsize
- Android textAppearance的属性设置及TextView属性详解
- Android textAppearance的属性设置及TextView属性详解
- Android TextView中文字通过SpannableString来设置超链接、颜色、字体等属性
- android TextView中文字通过SpannableString设置属性
- Android TextView 属性设置
- Android textAppearance的属性设置及TextView属性详解
- Android TextView中文字通过SpannableString来设置超链接、颜色、字体等属性
- Android使用TextView,设置onClick属性无效的解决方法
- 安卓开发——TextView属性设置
- android开发之自定义TextView设置字间距以及通过TextView控件属性设置行间距
- Android TextView中文字通过SpannableString来设置超链接、颜色、字体等属性
- Android TextView中文字通过SpannableString来设置超链接、颜色、字体等属性
- Android textAppearance的属性设置及TextView属性详解
- TextView设置一行最多显示5个字是什么属性
- TextView设置maxLines和ellipsize后文字显示不全
- TextView使用SpannableString设置某部分文本的各种属性(点击、颜色、下划线...)