Hello! I would like to build a layout with this structure (I used buttons only as an example in the XML file):
AAAAAAAA BCCCCCCD BCCCCCCD BCCCCCCD BCCCCCCD BCCCCCCD Where A = Button01, B = Button02, D=Button03 and C is a ScrollView/ another layout. The XML is the following: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <Button android:text="Button01" android:id="@+id/Button01" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_width="fill_parent"></Button> <ScrollView android:id="@+id/ScrollView01" android:layout_height="fill_parent" android:layout_below="@+id/ Button01" android:layout_alignParentBottom="true" android:layout_toLeftOf="@+id/Button03" android:layout_toRightOf="@+id/ Button02" android:layout_width="wrap_content"> <Button android:text="Button04" android:id="@+id/Button04" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> </ScrollView> <Button android:layout_width="wrap_content" android:id="@+id/ Button03" android:text="Button03" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:layout_below="@+id/ Button01" android:layout_toRightOf="@+id/ScrollView01" android:layout_alignParentRight="true"></Button> <Button android:layout_width="wrap_content" android:id="@+id/ Button02" android:text="Button02" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:layout_below="@+id/ Button01" android:layout_toLeftOf="@+id/ScrollView01" android:layout_alignParentLeft="true"></Button> </RelativeLayout> The problem is that Button03 fills all the space under the Button01, even though the layout_width of the ScrollView is fill_parent (I'm not sure if this value is correctly chosen). I tried to set up the relations between the views as exactly as possible. Where am I wrong? 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 -~----------~----~----~----~------~----~------~--~---