android textview 中超出屏幕宽度的字符 省略号显示
2013-05-15 16:47
671 查看
当利用textview显示内容时,显示内容过多可能会折行或显示不全,那样效果很不好。今天发现android api中已经给出自动省略的功能。
实现如下:
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/hello"
android:ellipsize="end" android:singleLine="true"
/>
实现如下:
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/hello"
android:ellipsize="end" android:singleLine="true"
/>
相关文章推荐
- android textview 中超出屏幕宽度的字符 省略号显示
- android textview 中超出屏幕宽度的字符 省略号显示
- android textview 中超出屏幕宽度的字符 省略号显示
- 【Android】 textview 中超出屏幕宽度的字符 省略号显示
- android textview 中超出屏幕宽度的字符 省略号显示
- android textview 中超出屏幕宽度的字符 省略号显示
- Android中textview超出屏幕宽度的字符 省略号显示
- android textview 中超出屏幕宽度的字符 省略号显示
- android开发教程之textview内容超出屏幕宽度显示省略号
- android 中超出屏幕宽度的字符 省略号显示
- Android设置TextView显示指定个数字符,超过部分显示...(省略号)的方法
- Android TextView设置显示指定字符,超过部分显示...(省略号)
- Android Textview 超出最多字数省略号显示
- android控制TextView字数长短,超出之后显示省略号,记录下,省的下次再找
- Android TextView 判断文字内容是否超出显示省略号
- Android 同一行2个TextView 右边的完全显示,左边的超出显示省略号
- 【Android】TextView最多显示指定字符,超过部分省略号表示
- android:TextView单行显示设定字符长度,超过后面为省略号
- 为什么Android里TextView的省略号有时显示两个点,有时显示三个点?
- android设置textview限制字数以省略号显示的方法