TextView设置最多显示指定字符数,超过部分显示...(省略号)
2016-02-18 16:28
351 查看
[java] view
plain copy
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="18"
android:singleLine="true"
android:ellipsize="end"
/>
plain copy
<TextView
android:id="@+id/tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxEms="18"
android:singleLine="true"
android:ellipsize="end"
/>
相关文章推荐
- Hibernate之Session增删改查操作
- Unity3d LineRenderer画线
- mysql 1129 error
- Spark学习笔记三(RDD常用操作)
- iOS 沙盒文件操作
- jsp下页面跳转的几种方法小结
- 搭通自己的电脑与GitHub的传输通道
- c#中的数据类型简介
- 超全!整理常用的iOS第三方资源(转)
- 第一天git学习记录
- PHP new self和new static的区别
- CUDA_HelloWorld篇
- iOS提交遇到的新问题
- Zxing生产二维码 附带添加logo
- <c:remove>和<c:catch>-------JSTL
- plsql的一些配置
- SpringMVC中使用Interceptor拦截器
- ASP.NET Form身份验证方式详解
- Js基础知识梳理系列(01):数据类型
- Android应用架构 (Android Dev Summit 2015)