I am trying to execute this table layout in which there are three columns, each column uses the maximum space as they could (using the strechColumn tag). Now that the column is getting too long content, the table layout bounces off the screen.
How can I set the contents of a column to be migrated so that the layout of the table does not jump from the screen.
here is the xml code for the table layout i used
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:scrollbars="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent"> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="0,1,2" android:id="@+id/tLayout" android:scrollbars="vertical" > <TableRow android:layout_width="fill_parent"> <TextView android:padding="3dip" android:gravity="left" android:text="Name" /> <TextView android:padding="3dip" android:gravity="left" android:text="Address" /> <TextView android:padding="3dip" android:gravity="left" android:text="Age" /> </TableRow> </TableLayout> </ScrollView>
source share