TextView 设置 Ellipsize 属性,但它不工作?
16lz
2022-03-16
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 进程自杀再重启的方法
- 一步步教你为网站开发Android客户端
- Android倒计时功能的实现
- android Immutable bitmap passed to Canvas constructor异常
- Android中替换ExpandableListView控件前面的箭头图标
- 去掉Button的默认背景
- ERROR: No installed build tools found. Install the Android(
- Android(安卓)DEX 方法超过64K限制
- android 颜色、 透明度参考表