Fork me on GitHub

android开发之当设置textview多少字后以省略号显示。限制TextView的字数

设置多少字后以省略号显示


<TextView   
android:id="@+id/tv"  
android:layout_width="wrap_content"  
android:layout_height="wrap_content"  
android:maxEms="18"  
android:singleLine="true"  
android:ellipsize="end"  
/>  
posted @ 2016-03-17 15:14  程序员小冰  阅读(1325)  评论(0编辑  收藏  举报


Fork me on GitHub