On Fri, Sep 7, 2012 at 2:44 PM, Leo <[email protected]> wrote:
> I thought that algorithm for choosing resource is common for all layouts,
> drawables and values, am I right?

At a high level, yes. The devil is in the details (e.g., drawables can
use other directories and scale the images).

> You right - I do not need different layout, but I do need different images
> (I want crisp look, not scaled and blurred one)

Which is fine, but that does mean you should dump the separate layout
directories.

> why don't Android choose folder according different densities while having
> equal smallest width for both screens?

Beats me, which is part of the reason I didn't offer an answer for
that originally. Your suffixes are in the right order (sw8000dp before
the density).

> And how can I define two different values and images for 1280x800 mdpi and
> 1920x1200 hdpi?

Drop the -sw800dp part where it is not needed. For example, if you
have res/drawable-sw800dp-mdpi/ and res/drawable-sw800dp-hdpi/ and
nothing else, there is no point in the -sw800dp part.

Beyond that, if you create a sample project that demonstrates the
issue, I'd like to take a peek at it.

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