简体   繁体   English

drawable-xxhdpi的正确大小图标是什么?

[英]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? 那么正确的大小图标是什么?

Android图标显示密度

  • MDPI: 48x48 MDPI: 48x48
  • HDPI: 72x72 HDPI: 72x72
  • XHDPI: 96x96 XHDPI: 96x96
  • XXHDPI: 144x144 XXHDPI: 144x144
  • XXXHDPI: 192x192 XXXHDPI: 192x192

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缩放比例

- developer.android.com - developer.android.com

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

Standart icon size in dip is 48 dip . 标准图标尺寸下降48点

You might use this service for creation all size icons. 您可以使用此服务创建所有大小的图标。 (Set size - 48 dip, and other settings) (设置大小 - 48倾角和其他设置)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果图像处于drawable-xxhdpi,则部分显示 - Image displayed partially if in drawable-xxhdpi eclipse会识别drawable-xxhdpi文件夹吗? - would eclipse recognise drawable-xxhdpi folder? Galaxy S4从drawable-sw360dp-hdpi而不是drawable-xxhdpi中选择资源? - Galaxy S4 picking resource from drawable-sw360dp-hdpi instead of drawable-xxhdpi? drawable-xxxhdpi的图标大小是多少? - What's the correct icon size for drawable-xxxhdpi? ADT插件未在Eclipse中创建drawable-xxhdpi文件夹 - drawable-xxhdpi folder not created in Eclipse by ADT plugin 如何将所有图像放入“ drawable-xxhdpi”阵列中? 特别是在“垫子”阵列中? - How to put all image in “drawable-xxhdpi” in an array? specifically in “Mat” array? 我是否需要使用所有drawable,drawable-mdpi,drawable-hdpi,drawable-xhdpi,drawable-xxhdpi和drawable-xxxhdpi? - Do I need to use all of drawable, drawable-mdpi, drawable-hdpi, drawable-xhdpi, drawable-xxhdpi & drawable-xxxhdpi? DRAWABLE-V21 中的 Android drawble-xhdpi、drawable-xxhdpi、drawable-xxxhdpi 子文件夹也适用于 DRAWABLE-V23? - Android drawble-xhdpi, drawable-xxhdpi, drawable-xxxhdpi subfolders inside DRAWABLE-V21 also for DRAWABLE-V23? (Android)如果仅将图像文件放在drawable-xxhdpi文件夹中,它是否可以在具有各种密度的所有设备中使用 - (Android) If I put an image file only in drawable-xxhdpi folder, is it working in all devices which have various densities XXHDPI中的可绘制箭头 - Drawable Arrow in XXHDPI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM