Android apply styles for different screens

瘦欲@ 提交于 2019-12-05 21:17:50

问题


I have an application, that need to run in 2 different devices: 600x1024 & 480x800.

For these devices, I want to apply different styles (they has different ratio). How I can do it, as both of them has hdpi?, e.g. values-hdpi, values-mdpi have no effect....

P.S. Android 2.2.


回答1:


Take a look at the available resource directory qualifiers. There are also screen size qualifiers you can use.

In your case you need the large and xlarge qualifiers. Try that.



来源:https://stackoverflow.com/questions/4562216/android-apply-styles-for-different-screens

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