hi, your table layout as defined in your xml specifes to fill the parent with its content. that is why it is not showing up the second image button. try to adjust the width of the table layout so that image button can also be seen <TableLayout > android:layout_width="fill_parent" /////////here > android:layout_height="wrap_content" > android:stretchColumns="1"> >
On Oct 18, 7:49 am, dashman <erjdri...@gmail.com> wrote: > i've got a linear layout - horz. > > with an image-view on the left and > a tablelayout to it's right. > > works fine! > > i wanted to add an image-button to the > right of the tablelayout. > > problem is that image-button never appears > on the screen. > > if i comment out the tablelayout (i.e. > just 2 image-views in the layout) - then > the image-button shows up. > > i've verified the code for the image-button - > it's correct. > > it's almost as if one cannot have a view > after a tablelayout - i.e. it takes up the > remainder of the width. > > <?xml version="1.0" encoding="utf-8"?> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="horizontal" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:paddingTop="5dip" > android:paddingBottom="5dip" > android:background="#333333"> > > <ImageView android:id="@+id/main_child_image" > android:paddingLeft="40dip" > android:paddingRight="5dip" > android:layout_gravity="center_vertical" > android:layout_width="wrap_content" > android:layout_height="wrap_content" /> > > <TableLayout > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:stretchColumns="1"> > > <TableRow> > > <TextView > android:id="@+id/main_child_text1" > style="@style/style_main_child_text1" /> > > <TextView > android:id="@+id/main_child_text2" > style="@style/style_main_child_text2" /> > > <TextView > android:id="@+id/main_child_text6" > style="@style/style_main_child_text6" /> > > </TableRow> > > <TableRow> > <TextView > android:id="@+id/main_child_text3" > style="@style/style_main_child_text3" /> > <TextView > android:id="@+id/main_child_text4" > style="@style/style_main_child_text4" /> > <TextView > android:id="@+id/main_child_text5" > style="@style/style_main_child_text5" /> > </TableRow> > > </TableLayout> > > <ImageButton android:id="@+id/status_button" <!-- > this is not showing up --> > android:src="@drawable/status_button" <!-- if i > comment > the tablelayout - then it shows--> > android:layout_gravity="center_vertical" > android:layout_width="32px" > android:layout_height="32px" /> > > </LinearLayout> -- 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