Try to change the height of the LinearLayout from fill_parent to wrap_content.
On Thu, Jan 8, 2009 at 8:54 PM, Jamie <[email protected]> wrote: > > Here is the layout XML: > > <?xml version="1.0" encoding="utf-8"?> > <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" > android:id="@+id/scroll" > android:background="#699864" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:scrollbars="vertical" > android:visibility="visible" >> > <LinearLayout android:id="@+id/linear" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > <ImageButton > android:id="@+id/img_woot" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:scaleType="centerInside" > /> > <TextView > android:id="@+id/text_woot" > android:textStyle="bold" > android:textColor="#255" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > /> > <ImageButton > android:id="@+id/img_shirt" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:scaleType="centerInside" > /> > <TextView > android:id="@+id/text_shirt" > android:textStyle="bold" > android:textColor="#255" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > /> > <ImageButton > android:id="@+id/img_wine" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:scaleType="centerInside" > /> > <TextView > android:id="@+id/text_wine" > android:textStyle="bold" > android:textColor="#255" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > /> > > </LinearLayout> > </ScrollView> > > When I run this on the emulator and G1, the ImageButtons are drawn > vertically one after another, then the TextViews are drawn one after > another below the ImageButtons. Why is this?? Why are the elements > drawn in groups instead of the order in the XML?? > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

