I have created a relative layout that seems like it should work fine, but it does not. I've Googled, checked docs, flipped through books and experimented with different properties trying to get it right. I even tried playing with it on DroidDraw, but still to no avail.
I want the layout to show buttons next to each other, creating and placing them to the right. The buttons must stay the same size (in fact, they reference the same image). I could use other layouts, but i would like to know why this doesn't work! <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5px" > <ImageButton android:id="@+id/button1" android:background="@drawable/button_img" android:layout_alignParentLeft="true" android:layout_width="72px" android:layout_height="58px" /> <ImageButton android:id="@+id/button2" android:background="@drawable/button_img" android:layout_width="72px" android:layout_height="58px" android:layout_alignTop="@id/button1" android:layout_toRightOf="@id/button1" /> </RelativeLayout> The line: android:layout_alignParentLeft="true" I believe shouldn't be necessary, as the first object in the container should automatically be placed to the top and left. The layout view shows only one button, and the layout is visible with its black background. When clicking on the button in the layout tab of the main.xml file, the properties show it as 'button2'. So it seems like they may be stacking on top of one another or replacing each other. What gives? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

