Re: [android-developers] drawable-xhdpi-v9 ?
Do you just mean the density configuration in general? Surely Donut did not specifically know about xhdpi (which was only introduced in Gingerbread)?
On 27 May 2012 10:53, Dianne Hackborn <hackbod@android.com> wrote:
There is no need to here, previous versions of the platform (down to API 4) know about the density configuration and will pick the correct density for you.--On Sat, May 26, 2012 at 9:20 AM, Mark Murphy <mmurphy@commonsware.com> wrote:
On Sat, May 26, 2012 at 12:12 PM, Mark Carter wrote::: smacks forehead ::
> When min level is pre-Donut, I remember there is a common approach to use
> drawable-ldpi-v4, drawable-hdpi-v4, drawable-nodpi-v4 (as well as
> "drawable") for similar reasons.
>
> If I have an app with ONLY xhdpi resources and set the minimum level to 8,
> then I notice the drawable-xhdpi resources are still picked up (as opposed
> to throwing some kind of resource not found exception) on Froyo. This is
> convenient but not particularly bulletproof IMHO, not least because the
> Froyo device will have no idea what scaling xhdpi implies.
My apologies. I misread your question. I thought you were saying that
your minSdkVersion *was* 9, not was *less than* 9. With a
minSdkVersion of less than 9, using -v9 for resources you only want
used on 9 and higher is perfectly reasonable.
Correct.
> Now, I haven't tested this, but I suppose that using drawable-xhdpi-v9 will
> stop froyo from seeing those resources at all and so give
> better-than-nothing runtime exceptions (which in most cases would show up
> pretty quickly).
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in DC: http://marakana.com/training/android/
--
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
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
--
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
--
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