Android layout with sw600dp and sw720dp

大兔子大兔子 提交于 2019-12-03 08:51:25

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/11630013/android-layout-with-sw600dp-and-sw720dp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!