Since you are putting the "default" icons in one particular folder, I
would recommend changing that one from "drawable-mdpi" to simply
"drawable".  The reason is that there are actually four possible
values for that qualifier ("hdpi", "mdpi", "ldpi" and none of the
above).  See Issue #4616.  It's similar to the reason that if you're
doing localization and your default language is English, your English
resources are not qualified ("values/strings.xml") while the resources
for your non-default languages are (ex: "values-fr/strings.xml").

Learned that the hard way (and submitted that Issue #4716) because the
Droid Explorer API Browser would force close on an Archos 5 Internet
Tablet because it never selects a folder using any of the "?dpi"
qualifiers.

On Mar 1, 5:45 pm, westmeadboy <[email protected]> wrote:
> To recap, I have an app that targets v4, with min v3.
>
> I ended up with three drawable folders:
>
> drawable-hdpi-v4
> drawable-mdpi
> drawable-ldpi-v4
>
> Is this the correct approach in this situation?
>
> On Jan 29, 11:40 am, Dianne Hackborn <[email protected]> wrote:
>
>
>
> > Correct, it doesn't do anything with it.  (Though technically by the time
> > the .apk is on the device, the folder is irrelevant; what the device is
> > doing is looking at the resource table, which contains a data structure
> > representing the different pieces that aapt parsed out of the directory
> > names, and only looking at the particular fields of that structure it knows
> > about.)
>
> > On Fri, Jan 29, 2010 at 1:45 AM, westmeadboy <[email protected]>wrote:
>
> > > You mean, it ignores the "ldpi" component of the folder name and so
> > > treats the "drawable-ldpi" folder the same as a "drawable" folder?
>
> > > On Jan 29, 2:05 am, Dianne Hackborn <[email protected]> wrote:
> > > > It does ignore it, and ends up with two resources that are equivalent so
> > > > picks one of them.
>
> > > > On Thu, Jan 28, 2010 at 3:07 PM, westmeadboy <[email protected]
> > > >wrote:
>
> > > > > Then I would expect it to ignore it, but it doesn't.
>
> > > > > I think you misread my post, Dianne.
>
> > > > > On Jan 28, 11:55 pm, Dianne Hackborn <[email protected]> wrote:
> > > > > > Because this is a new configuration param that it doesn't know 
> > > > > > about,
> > > so
> > > > > > doesn't see, and wouldn't want to see, because it wouldn't know what
> > > to
> > > > > do
> > > > > > with it.
>
> > > > > --
> > > > > 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]<android-developers%2Bunsubs
> > > > >  [email protected]><android-developers%2Bunsubs
> > > [email protected]>
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
>
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > [email protected]
>
> > > > 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 [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%2Bunsubs
> > >  [email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
>
> > 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 [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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to