There was an extensive thread on here last week(?) on blending
multiple-screen-size and Android 1.5 support. I don't have a link handy
and don't have time to look it up right now, but I think by the end
there was a hint of a resolution (pun lightly intended).

freezy wrote:
> As mentioned in the dev guide I can prevent this by adding the API
> version number to the resource folder. Not very convenient since I'd
> have to keep the hires bitmaps twice (drawable-hdpi-v4 and
> drawable-hdpi-v5)

You would only need the -v4 edition. Quoting from the documentation, the
version qualifier indicates:

"Resources that are for use only on a specific API Level or higher"

(key there being "or higher")

> And what's weird: emulator1.6 (WVGA854, density @ 240),
> uses hires-graphics. Now that seems odd.

Why odd? Your density (240) is -hdpi, so it uses -hdpi graphics.

> I've tried some other combinations, including the deprecated
> -<resolution> qualifier, but no luck. Is there anyone who has
> accomplished something simliar?

For 1.6 and higher, I have used -ldpi, -mdpi, and -hdpi with success. I
have not yet tried blending screen-size support with Android 1.5 support.

> For graphical elements
> where I must supply a bitmap containing physical pixels I want to know
> on how many pixels it is finally displayed. I don't particulary care
> about the screen's physical measurements.

You might not care, but your users sure will. A 32px square image on a
3" QVGA screen and a 32px square image on a 3.7" WVGA854 screen are very
 different, particularly if they are something to be tapped upon. The
former probably qualifies as "finger-friendly"; the latter size surely
does not.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

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