Perhaps your application is running in HVGA compatibility mode?

Make sure you have either minSdkVersion set to 4 or above, or a
supports-screens tag in the manifest.
 23.04.2011 2:28 пользователь "Tom" <[email protected]> написал:
> Hi all...
>
> I'm developing an app and frequently testing on a device, rather than
> emulator.
> It's so very quick to build and launch, I love it.
>
> Now that the layout is becoming more mature in the app, I've found
> components appearing differently than I expected. This wasn't so
> obvious first since I was using layout_width/height: fill_parent or
> match_parent and wrap_content. Now when I need to use specific values
> in dp or px, I have discovered this:
>
> the mobile device with a 3.5" screen @ 480x800 is using drawable
> resources from:
> res/drawable-mdpi/
>
> and ignoring
> res/drawable-hdpi/
>
> And another strange thing, and must be from the same source of
> problem, it is correctly using layout xml files from:
> res/layout-normal/
>
> but, from within this layout-normal, it takes a LinearLayout with 90px
> (or 90dp, behaves same way for both dp/px) and renders the component
> to the real physical screen with a dimension of 135px. My desired
> size is 90 pixels on this dpi, so if I set the
> android:layout_height="60px" then it comes out looking great at 90px.
> The mdpi -> hdpi conversion is x1.5, and that's the same scale factor
> happening here.
>
> I'm totally confused why, and have put time into searching the
> documentation. Haven't found the solution.
>
> Btw, this is an Acer Liquid E phone, with 2.2 on it!
>
> Thanks in advance.
>
> --
> 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

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