Android and displaying multi-lined text in a TextView in a TableRow

The TextView will wrap the text if the column it’s in is set to shrink. Sometimes it does not wrap exactly, if the text ends with “, …”, then it is a little bit longer than exactly n lines.

Here’s an example, the TextView with the id question will wrap:

<TableLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" 
    android:shrinkColumns="*">
    <TableRow>
         <TextView
             android:id="@+id/question"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"/>
    </TableRow>
</TableLayout>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)