J'ai la configuration suivante dans un fichier XML:Problème avec l'espacement en utilisant TableLayout et TableRow
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/table_more_features"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/background_blue" >
...
<TableRow
android:id="@+id/tableRow7"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/cell_top"
android:padding="5dip" >
<TextView
android:id="@+id/txt_foo"
android:background="@android:color/transparent"
android:layout_weight=".3"
android:text="Foo" />
<TextView
android:id="@+id/txt_bar"
android:background="@android:color/transparent"
android:layout_weight=".3"
android:text="Bar" />
<TextView
android:id="@+id/txt_woo"
android:background="@android:color/transparent"
android:layout_weight=".3"
android:text="Woo" />
</TableRow>
...
</TableLayout>
Le résultat ressemble
On dirait que peu importe ce que j'essaie je ne peux pas obtenir un espacement régulier entre les trois TextViews, le premier prend toujours la majorité de la pièce. J'essaie d'avoir tous les 3 espacés uniformément horizontalement.
Merci pour toute aide.