[英]would eclipse recognise drawable-xxhdpi folder?
Greeting, 问候,
I have attempted to add a xxhdpi folder under the res. 我试图在res下添加一个xxhdpi文件夹。 When I tested on 1080X1920 emulator, why eclipse loads the images where I was placed in drawable-xhdpi (720X1080)? 当我在1080X1920模拟器上测试时,为什么eclipse加载我放在drawable-xhdpi(720X1080)中的图像?
The screen resolution is not indicative of the pixel density. 屏幕分辨率不表示像素密度。 Think of tablets. 想想平板电脑。 Lots of pixels, but only MDPI~HDPI pixel density. 很多像素,但只有MDPI~HDPI像素密度。
In other words, it's using XHDPI graphics because the emulator is emulating an XHDPI device. 换句话说,它使用XHDPI图形,因为仿真器正在模拟XHDPI设备。
Actually no need to add any graphics for XXHDPI it will pick from XHDPI and auto scale it. 实际上不需要为XXHDPI添加任何图形,它将从XHDPI中选择并自动缩放它。
public static final int DENSITY_XXHIGH public static final int DENSITY_XXHIGH
Added in API level 16
Standard quantized DPI for extra-extra-high-density screens. 用于超高密度屏幕的标准量化DPI。 Applications should not generally worry about this density; 应用程序通常不应该担心这种密度; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases. 依赖XHIGH图形扩展到它应该足以满足几乎所有情况。
Constant Value: 480 (0x000001e0)
in rare care you can also use drawable-xxhdpi or drawable-480dpi
folder to place app icon with 144 x 144 px
在罕见的护理中你也可以使用drawable-xxhdpi or drawable-480dpi
文件夹来放置144 x 144 px
app图标
if you see your android-sdk folder at this below location 如果你在下面的位置看到你的android-sdk文件夹
/home/padmakumar/android-sdk/platforms/android-17/data/res/mipmap-xxhdpi
there you can see an icon sym_def_app_icon.png
with 144 x 144px
那里,你可以看到一个图标sym_def_app_icon.png
与144 x 144px
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.