I want to draw a table in which last column should be at the right most side of the table.
This is how the table row looks like:
example (pseudo code):
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1">
<TableRow>
<TextView android:text="Left Column" />
<TextView android:layout_gravity="right|center_vertical" android:text="Right Adjusted Column" />
</TableRow>
</TableLayout>
Here you have to do
set the table row width to fill_parent
and set the android:layout_gravity="right"
to the textview which you want to align right it to the table row
---- or ----