Android xxhdpi, 420 dpi and 480 dpi

前端 未结 1 609
傲寒
傲寒 2021-01-14 02:48

I\'m facing the next problem:

I have a values-xxhdpi with their dimensions.xml. Devices with 480 dpi work great with this folder.

The problem is that for exa

相关标签:
1条回答
  • 2021-01-14 03:09

    You have to create dimension resource files for different screen sizes with different dpi.

    As you can see here:

    android:screenSize=   ["small"| "normal" | "large" |     "xlarge"     ]
    
    android:screenDensity=["ldpi" |   "mdpi" | "hdpi"  | "xhdpi"| "xxhdpi"]
    
                dpi   [ "280" | "360"| "420"| "480" | "560" ] 
    

    Add your screen dimension with density and define your attributes.

    0 讨论(0)
提交回复
热议问题