[英]What's the correct size icon for drawable-xxhdpi?
As we know, the correct sized icon: 我们知道,正确的大小图标:
* drawable-ldpi (120 dpi, Low density screen) - 36px x 36px
* drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px
* drawable-hdpi (240 dpi, High density screen) - 72px x 72px
* drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px
On Jelly Bean, drawable-xxhdpi
can be supported. 在Jelly Bean上,可以支持drawable-xxhdpi
。 So what's the correct size icon? 那么正确的大小图标是什么?
to create an icon for different densities, you should follow the 2:3:4:6:8 scaling ratio between the five primary densities (medium, high, x-high, xx-high, and xxx-high respectively) 要创建不同密度的图标,您应该遵循五个主要密度(中,高,x高,xx高和xxx高)之间的2:3:4:6:8缩放比例
This is a quote from a post on Google Plus https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW by Nick Butcher 这是来自Google Plus的帖子的引用https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW作者: Nick Butcher
The gorgeous screen on the Nexus 10 falls into the XHDPI density bucket. Nexus 10的华丽屏幕属于XHDPI密度桶。 On tablets, Launcher uses icons from one density bucket up [0] to render them slightly larger. 在平板电脑上,Launcher使用一个密度桶中的图标[0]来渲染它们稍大一些。 To ensure that your launcher icon (arguably your apps most important asset) is crisp you need to add a 144*144px icon in the drawable-xxhdpi or drawable-480dpi folder. 要确保您的启动器图标(可以说是您的应用程序最重要的资产)清晰,您需要在drawable-xxhdpi或drawable-480dpi文件夹中添加144 * 144px图标。
So, for the xxhdpi qualifier, you will need to create an icon of the size 144*144px for your launcher icon. 因此,对于xxhdpi限定符,您需要为启动器图标创建大小为144 * 144px的图标。 You can either place it in the drawable-xxhdpi or the drawable-480dpi 您可以将它放在绘制-xxhdpi或绘制,480dpi
EDIT: To add to the original answer to address cone of the comments by the OP. 编辑:添加到原始答案,以解决OP的评论锥。
As per this link: http://developer.android.com/guide/practices/screens_support.html#DesigningResources , alternative resources should be created using this ratio: 3:4:6:8 scaling ratio . 根据以下链接: http : //developer.android.com/guide/practices/screens_support.html#DesigningResources ,应使用此比率创建替代资源: 3:4:6:8缩放比率 。 However, if you are concerned about loosing quality with regards to your in-app drawable resource, consider using 9-patch images wherever possible. 但是,如果您担心在应用程序内可绘制资源方面质量下降,请考虑尽可能使用9补丁图像。 That will reduce or eliminate any loss of quality. 这将减少或消除任何质量损失。 The Android OS all by itself, does a remarkable job handling various screen sizes most of the time anyway. Android操作系统本身就可以在大多数情况下处理各种屏幕尺寸。
As for the icon size 144*144px, create either of these two folder drawable-xxhdpi or the drawable-480dpi and place just your launcher icon of the said size in it. 至于图标的大小144 * 144px,创建这两种文件夹绘制-xxhdpi或绘制,480dpi和地方在它的大小说的只是你的启动程序图标。 That should do it. 应该这样做。
You need to add a 144*144px icon in the drawable-xxhdpi or drawable-480dpi folder. 您需要在drawable-xxhdpi或drawable-480dpi文件夹中添加144 * 144px图标。
For more information:- Official G+ shows that xxhdpi is 480dpi: 有关更多信息: - 官方G +显示xxhdpi为480dpi:
https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.