Sunday, September 8, 2013

How can I set a landscape layout just for tablets?

How can I set a landscape layout just for tablets?

Imagine I've a layout folder named layout-port. This layout contains the
two-layouts you can see in the picture below (handset). In the other hand,
I've a layout folder which is used when the screen orientation is not in
portrait mode, so it's in landscape.

However, when I rotate a device with a small screen, it's going to use the
portrait layout, but as the screen is so small, its not optimal and it
doesn't look good as the two fragments layout is mainly focused for
atleast 600dp tablets.
So the question is, Is there any way I can use a qualifier to set a
Landscape layout for smallest width higher than 600?
I've been checking the docs
http://developer.android.com/guide/practices/screens_support.html but it
doesn't seem to be able to combine smallest width & orientation.

No comments:

Post a Comment