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??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to