首页 > 移动平台 > 详细

android textview 显示一行,且超出自动截断,显示"..."

时间:2014-02-07 10:06:59      阅读:518      评论:0      收藏:0      [点我收藏+]

android textview 显示一行,且超出自动截断,显示"..."

<TextView android:layout_width="wrap_content" 

android:layout_height="wrap_content" 

android:id="@+id/PopNameList" 
android:singleLine="true"
android:ellipsize="end"

android:textStyle="bold"  
android:textSize="15sp"
android:width="120dp"/>

 

以下显示两行,超出多余显示。。。

<TextView android:id="@+id/question_listitem_title" 
         android:layout_width="fill_parent" 
       android:layout_height="wrap_content"
       android:includeFontPadding="false"
       android:textStyle="bold"
       android:textSize="@dimen/text_size_15"
       android:textColor="@color/listitem_black"
       android:maxLines="2"
      android:ellipsize="end"/>  

android textview 显示一行,且超出自动截断,显示"..."

原文:http://www.cnblogs.com/zmc/p/3539122.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!