On Wed, Nov 7, 2012 at 10:38 AM, Dave Smith <[email protected]> wrote:
> In my mind, the old devices that don't understand the "sw" qualifier should
> just ignore its existence and the two directories should just look like
> "large" and "xlarge".

If a directory has an unrecognized qualifier, the directory is
skipped; the qualifier is not simply ignored. Hence, older devices
will not "see" your -swNNNdp resources. You can demonstrate this by
taking a vanilla project, renaming res/layout/ to res/layout-swNNNdp/
(for some likely value of NNN), and running it on an old emulator.

> On the other side, with new devices, the "sw"
> qualifier should take precedence so the "large" and "xlarge" should become
> irrelevant.

Hmmm...

I just ran a test on a project, where I changed it to have just one
layout resource directory: res/values-sw100dp-normal/. That directory
was picked up by a 4.0.3 WVGA800 emulator. Given your description, I
would have expected it to fail here with a ResourceNotFoundException,
since there is no place to fail over to.

Do you happen to have a test project that demonstrates what you're seeing?

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

_The Busy Coder's Guide to Android Development_ Version 4.3 Available!

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