2011-02-24 3 views
0

j'ai un textView, sa hauteur est fixe, et les caractères de texte somme n'est pas incertain,android textView semble pas tout

<TextView 
android:id="@+id/item_content" 
android:layout_width="wrap_content" 
android:layout_height="30dip" 
android:layout_marginBottom="5dip" 
android:ellipsize="end" 
android:textColor="#000000" 
/> 

mais lorsque la hauteur du texte> la hauteur de textView, dans la dernière ligne Le partie inférieure oftext caractères est taillé

comme http://i.stack.imgur.com/qca9C.jpg et http://i.6.cn/cvbnm/5e/b7/41/f929ffab5b4e007e6e643ef5340325eb.jpg qui est utiliser marque de stylo rouge

Répondre

0

pls en définissant height comme wrap_content plutôt que fill_parent.

<TextView 
android:id="@+id/item_content" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:layout_marginBottom="5dip" 
android:ellipsize="end" 
android:textColor="#000000" 
/> 
1

HI..Try ce

<TextView 
android:id="@+id/item_content" 
android:layout_width="wrap_content" 
android:layout_height="fill_parent" 
android:layout_marginBottom="5dip" 
android:ellipsize="end" 
android:textColor="#000000" 
/> 
+0

je le teste, mais toujours comme par le passé – pengwang