绘制-sw720dp VS绘制,华电国际,绘制,xhdpi及其他
我要为提供可绘制:
- HVGA和QVGA的手机(但那些使用可绘制华电国际pretty井)
- 华电国际电话
- xhdpi电话
- xxhdpi电话
- 7平板电脑
- 10片
我有文件夹:
- 绘制,华电国际(使用手机最多的480x854屏幕)
- 绘制-xhdpi(使用手机一样的Galaxy S3)
- 绘制-xxhdpi(使用手机一样的Galaxy S4)
- 绘制-sw600dp(我希望:使用7平板电脑)
- 绘制-sw720dp(我希望:使用10片)
我原来的问题是,我想从绘制-sw720dp资源都没有用,但他们!有些平面设计师给我的文件与不同的名字,我没有注意到。我的错。
My original problem was, I thought resources from drawable-sw720dp are not used, but they are! Some graphic designer gave me files with different names and I did not notice. My fault.
所以,一点问题都没有。
So no problem at all.
有关支持平板电脑也使用大
, XLARGE
预选赛。 的Nexus 7
是一个大华电国际平板电脑(在技术上它是 tvdpi
,但需要的图像华电国际
)。所以,如果你想要把映像的Nexus 7
,使绘制-大华电国际
命名的文件夹,并把图像那里。
For supporting tablets also, use large
, xlarge
qualifiers. Nexus 7
is a large-hdpi tablet(technically it's tvdpi
, but takes images from hdpi
). So if you want to put images for Nexus 7
, make a folder named drawable-large-hdpi
and put the images there.
现在对于10英寸平板电脑的情况下,他们是 XLARGE
设备和它们的密度可以从 MDPI
更改为 xhdpi
(Nexus 10的)。但是,许多有1280 * 800的分辨率,他们是 MDPI
设备。
Now regarding the 10 inch tablets case, they are xlarge
devices and their densities can change from mdpi
to xhdpi
(Nexus 10). But many have resolution of 1280 * 800 and they are mdpi
devices.
像这样创建文件夹绘制
// for Phones
drawable-mdpi
drawable-hdpi
drawable-xhdpi
drawable-xxhdpi
//for 7 inch tablets
drawable-large-mdpi
drawable-large-hdpi(for Nexus 7)
// for 10 inch tablets
drawable-xlarge-mdpi
drawable-xlarge-xhdpi(for nexus 10)
Source答案的