I'm trying to make a two column <TableLayout>
in Android with vertical and horizontal scrolling.
Like this:
This is my code:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableRow
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:weightSum="1.0" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height=".90"
android:layout_gravity="left"
android:layout_weight=".35" >
<TextView
android:id="@+id/TextView04"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#b0b0b0"
android:text="column 1"
android:textColor="#000000" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_gravity="right"
android:layout_weight=".65" >
<TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#a09f9f"
android:text="column 2"
android:textColor="#000000" />
</LinearLayout>
</TableRow>
</TableLayout>
Maybe someone can help my to write all code?