android:singleLine="true" 的意思(转载)

转自: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,文本将自动换行

posted on 2015-03-21 10:57  次奥砖家  阅读(1005)  评论(0编辑  收藏  举报

导航