i'd like to create a table, that has 100% width (fill_parent).
It has 1 tablerow with 2 textviews.
textview1 "left side:" has to be aligned to the left.
textview2 "right value" has to be aligned to the right.
but this doesnt be that simple
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView android:id="@+id/sv"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:scrollbars="none">
- <TableLayout android:id="@+id/table"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <TableRow android:id="@+id/tr1"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="fill_horizontal">
- <TextView android:id="@+id/tr1tv1"
- android:text="left side:"
- android:layout_gravity="left"
- android:layout_width="fill_parent"></TextView>
- <TextView android:id="@+id/tr1tv2"
- android:text="right value"
- android:layout_gravity="right"></TextView>
- </TableRow>
- </TableLayout>
- </ScrollView>
Parsed in 0.004 seconds, using GeSHi 1.0.8.4
this produces this:
greetings,
darolla



) ' then it is trying to place it in the centre which it then does but confuses the next one.
