L
lord_fritte
Erfahrenes Mitglied
- 7
Hallo ich arbeite an einem TableLayout und möchte darin 3 Spalten und 3 Zeilen haben.
Aussehen soll die Tabelle so:
Realisiert habe ich das ganze bis jetzt so:
Mein Problem: Wenn Kategorie oder Beschreibung länger sind, wird Preis aus dem layout geschoben, kann ich nur die erste Zeile stretchen lassen?
Aussehen soll die Tabelle so:
Code:
Datum Kontoname Preis
Kategorie
Beschreibung
Realisiert habe ich das ganze bis jetzt so:
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="wrap_content"
android:stretchColumns="1">
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/lbl_buchungenList_datum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="xx.xx.xxxx"
android:textSize="15dip" />
<TextView
android:id="@+id/lbl_buchungenList_kontoName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kontoname"
android:layout_column="1"
android:layout_marginLeft="5dip"
android:textSize="15dip" />
<TextView
android:id="@+id/lbl_buchungenList_wert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="0.00 €"
android:textSize="15dip" />
</TableRow>
<TableRow
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/lbl_buchungenList_kategorie"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kategorie-SubKategorie"
android:layout_column="1"
android:layout_marginLeft="5dip"
android:textSize="15dip" />
</TableRow>
<TableRow >
<TextView
android:id="@+id/lbl_buchungenList_beschreibung"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Beschreibung"
android:layout_column="1"
android:layout_marginLeft="5dip"
android:textSize="15dip" />
</TableRow>
</TableLayout>
Mein Problem: Wenn Kategorie oder Beschreibung länger sind, wird Preis aus dem layout geschoben, kann ich nur die erste Zeile stretchen lassen?