Friday, September 7, 2012

Re: [android-developers] How can I put different resources for different dpi on ICS with the same sw800dp smallest width?

MIRACLE, as I said earlier.

I have:
Acer Iconia Tab A700 - 1920 hdpi - uses res/values-sw800dp-hdpi/ is ok
Asus Transformer Prime - 1280 mdpi - res/values-sw800dp-hdpi/ - why?
Nexus 7 - 1280 tvdpi - res/values-sw600dp-tvdpi/ is ok
Galaxy Tab 7 (but with custom 4.0.4) - 1024 mdpi - res/values-sw600dp-tvdpi/ - why?

Only Tab 7 has custom rom, others have stock roms with 4.0.4.

I also tried creating emulator with 1280x800 mdpi 4.0.3 and 4.1 and got the same res/values-sw800dp-hdpi not mdpi.

Thank you.

On Saturday, September 8, 2012 12:57:16 AM UTC+4, Mark Murphy (a Commons Guy) wrote:
On Fri, Sep 7, 2012 at 4:32 PM, Leo <leonid...@gmail.com> wrote:
> Here is a sample project for testing.
> I used one layout folder but separated values folders for sw600dp (mdpi +
> tvdpi) and sw800dp (mdpi + hdpi)
> You will see the density name in the center of the screen. Mine two tablets
> 1280mdpi and 1920hdpi both show HDPI.
> I hope you could take a glance at it and explain this miracle :)

A Nexus 7 uses res/values-sw600dp-tvdpi/, as expected.

A Transformer Infinity uses res/values-sw800dp-hdpi/, as expected.

A Galaxy Tab 2 (7") uses res/values-sw600dp-mdpi/, as expected

A XOOM uses res/values-sw800dp-hdpi/, as expected.

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