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


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"/>  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM