The nexus screen is only about half as wide and half as tall add that on
the Xoom, if measured in device independent units.

Base your layout switching on "dp" sizes and you'll be fine.
 13.04.2012 17:13 пользователь "kodlan" <[email protected]> написал:

> Hi!
> This drives me nuts. I'm developing application where I need to
> provide both tablet layout and simpler layout for phones. I'm
> targeting 4.0. After reading this
>
> http://developer.android.com/guide/practices/screens_support.html#DeclaringTabletLayouts
> I'm totally lost how that should be done.
>
> For example I have two devices Samsung Nexus (720x1280, xhdpi,
> ~315-320dpi) and Motorola Xoom (1280x800, mdpi, 160dpi).
>
> How can I correctly apply tablet layout for xoom and phone layout for
> nexus?!
> Using smallestWidth (-swXXXdp) or Available screen width (-wXXXp) for
> this seems to be wrong, as
> screen size (landscape for both) in dips for nexus is greater that for
> nexus.
>
> Someone please help me to figure this out.
> Thanks.
>
> --
> 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

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