Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextView on android only shows two lines worth of text in either orientation

if the text is longer than the the width the textview, after the second line, it cuts it and adds "..." to the end of it. It doesnt matter the orientation, it will just display more text until the end of the second line, here is the textview XML:

<TextView android:id="@+id/ContentViewerDescription"
                android:layout_width="wrap_content" 
                android:layout_height="match_parent"
                android:layout_weight="1" 
                android:ellipsize="end"
                android:maxLines="20"
                android:textColor="#999999"
                android:layout_marginTop="10px"
                android:layout_marginLeft="10px"/>
like image 243
nathanjosiah Avatar asked Jun 25 '10 21:06

nathanjosiah


1 Answers

change to android:layout_height="wrap_content" and delete android:ellipsize="end"

like image 114
Jorgesys Avatar answered Oct 20 '22 15:10

Jorgesys