ITeye博客

Android TextView 换行

hnlixf · 2013-06-14 23:18 · android · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。