简体   繁体   English

什么应该是默认的启动器图标大小

[英]What should be the default launcher icon size

I refer to the documentation at http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#icon-sets 我参考http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#icon-sets上的文档

Hence, I plan to have the following directory structures. 因此,我计划拥有以下目录结构。

res/
    drawable/   
        icon.png (? x ? px)
    drawable-ldpi/  
        icon.png (36x36 px)
    drawable-mdpi/  
        icon.png (48x48 px)
    drawable-hdpi/  
        icon.png (72x72 px)

However, I cannot find any documentation, to mention the size of default launcher icon size. 但是,我找不到任何文档,提到默认启动器图标大小的大小。

May I know what should be the default launcher icon size? 我可以知道默认的启动器图标大小应该是多少?

Android icon sizes Android图标大小

ldpi : 36x36px (120 dpi / 47 dpcm)
mdpi : 48x48px (160 dpi / 62 dpcm)
hdpi : 72x72px (240 dpi / 94 dpcm)
xhdpi : 96x96px (320 dpi / 126 dpcm)
xxhdpi : 144x144px (480 dpi / 189 dpcm)
xxxhdpi : 192x192px (640 dpi / 252 dpcm)

dip : 48x48dip (dip = dp)

mm : 76 mm (depends on the real device dpi)

iPhone icon sizes (dpi is a bit different on iPads) iPhone图标大小(iPad上的dpi略有不同)

non-retina : 57x57px (163 dpi / 64 dpcm)
retina : 114x114px (326 dpi / 128 dpcm)

mm : 89 mm

如果你已经填充了drawable-ldpi/ drawable-mdpi/drawable-hdpi/ with启动器图标,我认为你不需要在drawable/目录中提供图像。

The Android icon guidelines say that the baseline should be assumed to be mdpi, so if you're using the default drawable directory, images should be designed according to those guidelines (48x48 for launcher icons). Android图标指南说基线应该假定为mdpi,因此如果您使用的是默认的drawable目录,则应根据这些指南设计图像(48x48用于启动器图标)。 According to the documentation: 根据文件:

The system assumes that default resources are designed for the baseline screen size and density, which is a normal screen size and a medium density. 系统假定默认资源是针对基线屏幕尺寸和密度设计的,这是正常的屏幕尺寸和中等密度。 (from http://developer.android.com/guide/practices/screens_support.html ) (来自http://developer.android.com/guide/practices/screens_support.html

There's a bit of information there regarding when images from the default drawable directory are used too, but nothing specific. 那里有一些关于何时使用默认drawable目录中的图像的信息,但没有具体说明。

Maybe the following link will help you 也许以下链接将帮助您

http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size5 http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size5

According to Icon Design launcher: 根据Icon Design发射器:

Launcher icon dimensions for high-density (hdpi) screens: 高密度(hdpi)屏幕的启动器图标尺寸:

Full Asset: 72 x 72 px 完整资产:72 x 72像素

Icon: 60 x 60 px 图标:60 x 60像素

Square Icon: 56 x 56 px 方形图标:56 x 56像素

Launcher icon dimensions for medium-density (mdpi) screens: 中密度(mdpi)屏幕的启动器图标尺寸:

Full Asset: 48 x 48 px 全部资产:48 x 48像素

Icon: 40 x 40 px 图标:40 x 40像素

Square Icon: 38 x 38 px 方形图标:38 x 38像素

Launcher icon dimensions for low-density (ldpi) screens: 低密度(ldpi)屏幕的启动器图标尺寸:

Full Asset: 36 x 36 px 全部资产:36 x 36像素

Icon: 30 x 30 px 图标:30 x 30 px

Square Icon: 28 x 28 px 方形图标:28 x 28像素

根据http://developer.android.com/design/style/iconography.html ,默认启动器图标大小应为48 x 48像素。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM