Re: [android-developers] Re: Background images to fit different screens
Neilz wrote:
> Since I changed the structure as suggested, all my devices now pick up
> the images from /res/drawable. I have a images in other folders, but
> they never get used.
Do you have a proper <supports-screens> element in your manifest?
Android is supposed to choose the stronger match, so if you have foo.png
in res/drawable/ and res/drawable-hdpi/ (and nowhere else), and you
request R.drawable.foo, an hdpi device should pick up
res/drawable-hdpi/, and other devices should pick up res/drawable/.
> I am trying a Nexus One, which I believe to be 480 * 800 high density.
That is correct.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training...At Your Office: http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home