Since you want buttons in a row, put them between <TableRow> and
</TableRow>. Use layout_column as necessary.
For views that are not inside a TableRow, TableLayout works like a
vertical LinearLayout, which is what you are seeing.
-- Kostya
14.12.2010 17:17, Mad Troll пишет:
I'm trying to do layout where i will have
table (6 rows and 10 columns)
under it
2 buttons in one row
then list
i have something like that:
<?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"
android:stretchColumns="*"
<TableRow>
....
</TableRow>
<Button
android:layout_height="wrap_content"
android:text="Prevous" android:id="@+id/Prev"
</Button>
<Button
android:layout_height="wrap_content"
android:text="Next" android:id="@+id/Next"
</Button>
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="10" />
</TableLayout>
in this case i have buttons one under another
i also tried wrap them into linear layout and put them outside of my
TableLayout but this afret tham my app crashes
is anyone has an advice how i can solve my problem?
regards
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en