default directory, including when used by the Nexus.
I have the following in the manifest:
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" />
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="false" />
It would be great if there was a sample app, something really simple
which just displayed an image, which proved this point and could be
used on different devices.
On Jun 1, 4:17 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> 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/commonsguyhttp://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
No comments:
Post a Comment