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

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 恩布900手机客服,安卓版本号Entboost Andr
  2. Android使用shape绘制控件
  3. Android 中的(意图Intent)机制,常见应用
  4. [置顶] Android 4.2 Wifi Display 之 Set
  5. android之Handler详解
  6. 如何让Android模拟器能访问到本地Server
  7. Android NDK中C++运行时库介绍
  8. 巨佬Jake Wharton谈Android对Java 8的支
  9. 安卓开发-真机调试时安装失败
  10. android单选按钮事件