您的位置:首页 > 移动开发 > Android开发

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

2013-08-11 13:55 1371 查看
http://hi.baidu.com/shgy_999/item/a339ee5f70ddc9c09f266720


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"/>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐