Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android layout with sw600dp and sw720dp

I want to support 600dp screen in my android application. So i have made that layout using layout-sw600dp. But i cannot get the exact layout with the application.

I got 800 X 1280 screen size with layout-sw720dp but layout is little bit worse with 720 X 1280 size.

So what can i do to support 720 X 1280 in layout-sw720dp and 600 X 1024 in layout-sw600dp ?

like image 984
Rushabh Patel Avatar asked Jul 24 '12 11:07

Rushabh Patel


People also ask

How to create layout-sw600dp in Android?

And if you want to create the layout for the For 7” tables then create your activity in the layout-sw600dp folder and use the drawable-sw600dp. if you want to create the layout for For 10” tables then create your activity in the layout-sw720dp folder and use the drawable-sw720dp. Note: sw means “smallest width”.

What is layout-sw600dp?

layout-sw600dp drawable-sw600dp. which means tablet screen with minimum of 600dp and higher can use this layout and drawable.

What is sw720dp?

layout-sw720dp means devices with 720dp of smallest width. Specifically, the device's smallestWidth is the shortest of the screen's available height and width.


1 Answers

For tablets you can just create the layout and drawable with following qualifiers

layout-sw600dp drawable-sw600dp

which means tablet screen with minimum of 600dp and higher can use this layout and drawable.

So for standard configuration qualifiers for screen size you can create following configuration:

1)layout-sw480dp drawable-sw480dp

2)layout-sw600dp drawable-sw600dp

3)layout-sw720dp drawable-sw720dp

Ref: this go for following Table 2. New configuration qualifiers for screen size (introduced in Android 3.2).

like image 106
Arun Avatar answered Sep 20 '22 11:09

Arun