我对720*1280设备使用drawable-xhdpi文件夹(moto g),对1440*2560设备使用drawble-xxxhdpi (Nexus6)。
但我正面临着支持nexus6设备的问题,它也在从drawable-xhdpi文件夹中挑选图像,图像正在被拉伸。谁能告诉我支持这些解决方案的文件夹。
发布于 2015-09-16 19:59:18
Nexus6的量化密度为560dpi,介于xxhdpi和xxxhdpi初级密度桶之间。
对于Nexus6,该平台将缩减xxxhdpi资产,但如果这些资产不可用,它将扩展xxhdpi资产
res/
drawable-mdpi/
ic_sunny.png
drawable-hdpi/
ic_sunny.png
drawable-xhdpi/
ic_sunny.png
drawable-xxhdpi/ # Fall back to these if xxxhdpi versions aren’t available
ic_sunny.png
drawable-xxxhdpi/ # Higher resolution assets for Nexus 6
ic_sunny.png
ic_launcher.png
mipmap-xxxhdpi/
ic_launcher.png # App icon used on Nexus 6 device launcher请参阅official android blog
发布于 2015-09-16 19:57:57
我想你应该试试drawable-large-xhdpi或者Nexus6的drawable-large-xxhdpi,因为它的屏幕尺寸是5.96”,属于large screen size as per this document类别。
https://stackoverflow.com/questions/32607693
复制相似问题