Hi, I want to set up a table or grid of two columns where the left column has an image and the right has a column of buttons. I succeeded but the right column is not on the right side. Here is my xml:
<?xml version="1.0" encoding="utf-8"?> <!-- ! Copyright Michael Hallak-Stamler --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:background="@color/background" android:layout_height="fill_parent" android:layout_width="fill_parent" android:padding="15dip" android:orientation="horizontal"> <LinearLayout android:orientation="vertical" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_gravity="center" android:paddingLeft="10dip" android:paddingRight="10dip"> <TextView android:text="Visitor" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center" android:textSize="15.0sp" /> <TableLayout android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_gravity="center" > <TableRow> <ImageView android:layout_width="200px" android:layout_height="wrap_content" android:src="@drawable/visiteur" /> <LinearLayout android:orientation="vertical" android:layout_gravity="right" > <Button android:id="@+id/home_button" android:text="Wes" android:layout_height="@dimen/but_height" android:layout_width="fill_parent" /> <Button android:id="@+id/alarms_button" android:text="Alarms" android:layout_height="@dimen/but_height" android:layout_width="fill_parent" /> <Button android:id="@+id/visitor_button" android:text="Visitor" android:layout_height="@dimen/but_height" android:layout_width="fill_parent" /> <Button android:id="@+id/tools_button" android:text="Tools" android:layout_height="@dimen/but_height" android:layout_width="fill_parent" /> <Button android:id="@+id/door_button" android:text="Door" android:layout_height="@dimen/but_height" android:layout_width="fill_parent" /> </LinearLayout> </TableRow> </TableLayout> </LinearLayout> </LinearLayout> Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en