I have an image of 320px wide and 454px high that I display as the
background of a linearlayout with the following style:
        <style name="balloon">
                <item name="android:layout_width">320dip</item>
                <item name="android:layout_height">454dip</item>
                <item name="android:gravity">center_horizontal</item>
                <item name="android:orientation">vertical</item>
                <item name="android:paddingTop">35dip</item>
        </style>

this is the layout:
        <LinearLayout
            style="@style/balloon"
            android:background="@drawable/main_menu_balloon">

In the values-hdpi styles file I have larger dimensions for a graphic
that is larger, in the drawable-hdpi folder.This works, I get proper
sizing on all phones and emulators that I have tested, except that on
a 1.5 phone the image is larger than the screen. Now, when I add width
and height identical to the ones in the styles file, to the layout
file, the image displays properly. Like so:

        <LinearLayout
            style="@style/balloon"
                android:layout_width="320dip"
                android:layout_height="454dip"
            android:background="@drawable/main_menu_balloon">

I'm sure I'm missing something, a simple typo I'm overlooking, but for
now, I'm at a loss...

dagdag
Christine

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