@Vikas, it's good that you solved your problem.
BUt I would recommend using HorizontalScrollView for security purposes. If all characters are not visible, then a horizontal scrollbar will help to cope with this. XML text:
<HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_marginBottom="10dp" > <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5px"> ...... ...... ADD YOUR ROWS </TableLayout> </HorizontalScrollView>
It is always better to take care of the unexpected.
source share