Text data set to the textView22 exceeds the width . Ideally the remaining text should come in the next line of the same table row , but the text is truncated. How to display the text in a multiple lines in the same TableRow ?
Code below has a single row with two columns.
<TableLayout android:id="@+id/first_table"
android:layout_width="match_parent" android:layout_height="match_parent"
android:background="@drawable/table_shape" android:layout_marginTop="10dp"
android:layout_marginLeft="20dp" android:layout_marginRight="20dp">
<TableRow android:id="@+id/tableRow2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:isScrollContainer="true">
<TextView android:id="@+id/textView21"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:padding="5dp" android:textColor="@color/black"
android:text="@string/to_" android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_gravity="right">
</TextView>
<TextView android:id="@+id/textView22"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:padding="5dp" android:textColor="@color/black"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_gravity="left" android:maxLines="10"
android:scrollbars="vertical">
</TextView>
</TableRow>
</TableLayout>