Friday, September 7, 2012

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

On Fri, Sep 7, 2012 at 4:32 PM, Leo <leonidtheking@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