为不同的屏幕密度提供Integers.xml

时间:2017-01-20 09:00:32

标签: android screen

我正在为我的应用程序使用integers.xml。我为不同的屏幕提供了不同的integers.xml,例如values-mdpi,values-hdpi,values-xhdpi,values-xxhdpi。但是,App总是使用mdpi文件夹来显示所有屏幕大小和密度。为什么android不使用hdpi屏幕的hdpi文件夹,而是使用mdpi?

1 个答案:

答案 0 :(得分:0)

添加此文件夹

 //this for large devices

values-large-hdpi
values-large-mdpi
values-large-xhdpi  

//this for normal devices

values-normal-hdpi
values-normal-mdpi
values-large-xhdpi

希望这有帮助。:)