转自:http://blog.sina.com.cn/s/blog_72fad6270100tq0n.html

设置单行显示。如果和layout_width一起使用,当文本不能全部显示时,后面用“…”来表示。如
android:text="test_ singleLine "
android:singleLine="true"
android:layout_width="20dp"
将只显示“t…”。
如果不设置singleLine或者设置为false,文本将自动换行

相关文章:

  • 2021-12-25
  • 2021-08-21
  • 2022-02-13
  • 2021-05-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-29
  • 2021-07-17
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案