绘制对象-XXXX:Eclipse的对战AVD对战、对象、Eclipse、XXXX

2023-09-13 02:09:48 作者:捂风挽笑

的Nexus 7 800x1280 tvdpi API 17

Eclipse IDE中 - 使用可绘制-xxhdpi

AVD - 使用绘制 - 华电国际

的Galaxy S4 1080x1920 xxhdpi API 19

Eclipse IDE中 - 使用可绘制-xxhdpi

AVD - 使用绘制-xhdpi

Nexus One的480×800华电国际

Eclipse和AVD使用华电国际

Nexus4 768x1280 xhdpi

Eclipse和AVD使用xhdpi

问题

我使用的是最新的Eclipse / ADT捆绑API的8-19补充说。我已被忠实地创建图标,按钮和图像在MDPI,HDPI,xhdpi,和xxhdpi夹

我改变了我的帮助按钮(即显示在大部分的布局),所以它会在每个文件夹绘制不同的,所以我可以看到文件夹不同的设备使用。现在我发现Eclipse使用一个我期望的,但AVD同一设备使用另一个文件夹(除的Nexus One)。

哪一个是正确的Eclipse和AVD之间?我能相信什么可绘制文件夹它拉我的PNG文件的?我有140 PNG图像每个文件夹中了。该xxhdpi显然是最大的,并使用1.8兆的存储空间。我应该摆脱它?

感谢。

- 修改

我现在知道,tvdpi是MDPI和HDPI之间,并且它应该利用华电国际和降尺度有点。因此,AVD是正确的使用华电国际。

我仍然难倒与xxhdpi。难道操作系统不使用这种密度?据这里所说的(与xxxhdpi太):设备和显示器

据这里不再赘述:提供了资源。

如果你看看这个: Android设备,xxhdpi所使用的13个其他设备也一样,首先是API 16我把表分成为preadsheet这样我就可以通过任何comuns的排序。

随着S4和未来的设备(如即将到来的10片),xxhdpi和可能更大,将更加普遍。

下面是另外一回事提供谷歌搜索:请确保您的应用程序不排除xxhdpi屏幕

我难倒就如何处理这个问题。

我应该提供绘制-xxhdpi文件夹我的应用程序,或不????

解决方案   

哪一个是正确的Eclipse和AVD?之间

硬件是正确的。还有什么是不可靠的。特别是,AVDS似乎得到靠不住的高密度。

  

难道操作系统不使用这种密度?

这是presently用于设备9.7%的普通资源。这主要是你的1080手机大小的屏幕。此外,一般来说,这是一个好主意,提供一个启动器图标为下一个更高的密度,因为有时主屏幕采用更高密度的图像作为自己的基地发射器的图标,所以有些 -xhdpi 设备可以拉动启动图标从 -xxhdpi ,如果有的话。

  

我应该提供绘制-xxhdpi文件夹我的应用程序或不?

本周黑榜 CySEC黑名单警告 注意七家违法网站平台

这是给你的。 Android将下限值或高档图片来自其它密度的飞行,填补了国内空白。

Nexus 7 800x1280 tvdpi API 17

Eclipse IDE - uses drawable-xxhdpi

AVD - uses drawable-hdpi

Galaxy S4 1080x1920 xxhdpi API 19

Eclipse IDE - uses drawable-xxhdpi

AVD - uses drawable-xhdpi

NexusOne 480x800 hdpi

Eclipse and AVD use hdpi

Nexus4 768x1280 xhdpi

Eclipse and AVD use xhdpi

Questions

I am using the latest Eclipse/ADT bundle with APIs 8-19 added. I have been dutifully creating icons, buttons, and images in the mdpi, hdpi, xhdpi, and xxhdpi folders.

I changed my help button (that displays in most layouts) so it would be different in each of the drawable folders, so I could see what folder different devices use. Now I am finding that Eclipse uses the one I expect, but the AVD for the same device uses another folder (except the NexusOne).

Which one is right between Eclipse and the AVD? Can I trust what drawable folder it pulls my PNG files from? I have 140 png images in each folder now. The xxhdpi is obviously the largest and uses 1.8 Megs of storage. Should I get rid of it?

Thanks.

--EDIT

I now know that tvdpi is between mdpi and hdpi, and it's supposed to use hdpi and downscale it a bit. So, the AVD is correct to use hdpi.

I am still stumped with xxhdpi. Does the OS not use this density? It is mentioned here (with xxxhdpi too): Devices and Displays

It is not mentioned here: Providing Resources.

If you look at this: Android Devices, xxhdpi is used by 13 other devices too, starting with API 16. I put that table into a spreadsheet so I can sort it by any of the comuns.

With the S4 and future devices (like the upcoming 10 tablet), xxhdpi and possibly larger, will be more common.

Here is something else a google search provided: Make sure your app does not exclude xxhdpi screens

I am stumped on how to handle this.

Should I provide the drawable-xxhdpi folder with my app or not????

解决方案

Which one is right between Eclipse and the AVD?

The hardware is right. Anything else is shaky. In particular, AVDs seem to get wonky with high densities.

Does the OS not use this density?

It is presently used on 9.7% of devices for ordinary resources. That's mostly your 1080p phone-sized screens. Also, generally speaking, it's a good idea to provide a launcher icon for the next higher density, as sometimes home screens use higher-density images as their base for launcher icons, so some -xhdpi devices may pull launcher icons from -xxhdpi, where available.

Should I provide the drawable-xxhdpi folder with my app or not?

That's up to you. Android will downscale or upscale images from other densities on the fly to fill in the gaps.