Android - 启动器图标大小

本文翻译自:Android - Launcher Icon Size

For HDPI , XHDPI , etc. what should be the ideal size of the launcher icon? 对于HDPIXHDPI等,应该是启动器图标的理想大小? Should I have to create 9-Patch images for the icon to scale automatically, or would it be better to create separate icons? 我是否应该为图标创建9-Patch图像以自动缩放,还是创建单独的图标会更好?


#1楼

参考:https://stackoom.com/question/rZZY/Android-启动器图标大小


#2楼

I would create separate images for each one: 我会为每个人创建单独的图像:

LDPI should be 36 x 36.

MDPI should be 48 x 48.

TVDPI should be 64 x 64.

HDPI should be 72 x 72.

XHDPI should be 96 x 96.

XXHDPI should be 144 x 144.

XXXHDPI should be 192 x 192.

Then just put each of them in the separate stalks of the drawable folder. 然后将它们中的每一个放在drawable文件夹的单独的stalks中。

You are also required to give a large version of your icon when uploading your app onto the Google Play Store and this should be WEB 512 x 512 . 将应用程序上传到Google Play商店时,您还需要提供大型版本的图标,这应该是WEB 512 x 512 This is so large so that Google can rescale it to any size in order to advertise your app throughout the Google Play Store and not add pixelation to your logo. 这是如此之大,以便Google可以将其重新调整为任意大小,以便在整个Google Play商店中宣传您的应用,而不是为您的徽标添加像素化。

Basically, all of the other icons should be in proportion to the 'baseline' icon, MDPI at 48 x 48 . 基本上,所有其他图标应与“基线”图标成比例, MDPI at 48 x 48

LDPI is MDPI x 0.75.

TVDPI is MDPI x 1.33.

HDPI is MDPI x 1.5.

XHDPI is MDPI x 2.

XXHDPI is MDPI x 3.

XXXHDPI is MDPI x 4.

This is all explained on the Iconography page of the Android Developers website: http://developer.android.com/design/style/iconography.html 这些都在Android开发者网站的Iconography页面上进行了解释: http//developer.android.com/design/style/iconography.html


#3楼

Don't Create 9-patch images for launcher icons . 不要为启动器图标创建9补丁图像。 You have to make separate image for each one. 你必须为每个人制作单独的图像。

LDPI - 36 x 36
MDPI - 48 x 48
HDPI - 72 x 72
XHDPI - 96 x 96
XXHDPI - 144 x 144
XXXHDPI - 192 x 192.
WEB - 512 x 512 (Require when upload application on Google Play)

Note: WEB(512 x 512) image is used when you upload your android application on Market. 注意:在Market上传Android应用程序时使用WEB(512 x 512)图像。

|| || Android App Icon Size || Android App图标大小||

All Devices 所有设备

hdpi=281*164
mdpi=188*110
xhdpi=375*219
xxhdpi=563*329
xxxhdpi=750*438

48 × 48 (mdpi)
72 × 72 (hdpi)
96 × 96 (xhdpi)
144 × 144 (xxhdpi)
192 × 192 (xxxhdpi)
512 × 512 (Google Play store)

#4楼

I've posted a script for generating all platform icons for PhoneGap apps from a single SVG icon file. 我发布了一个脚本,用于从单个SVG图标文件生成PhoneGap应用程序的所有平台图标。 If you have existing bitmaps, I also include some notes that may help you to generate the SVG vectors from an existing bitmap. 如果您有现有的位图,我还会添加一些注释,可以帮助您从现有的位图生成SVG向量。 This won't work for all bitmaps but may for yours. 这不适用于所有位图,但可能适用于您的位图。


#5楼

Android icons require five separate sizes for different screen pixel densities. Android图标需要五种不同的尺寸,以适应不同的屏幕像素密度。 Icons for lower resolution are created automatically from the baseline. 从基线自动创建较低分辨率的图标。

mdpi (Baseline): 160 dpi 1×
hdpi: 240 dpi 1.5×
xhdpi: 320 dpi 2×
xxhdpi: 480 dpi 3×
xxxhdpi: 640 dpi 4× (launcher icon only)

Launcher icons (.Png) 启动器图标(.Png)

48 × 48 (mdpi)
72 × 72 (hdpi)
96 × 96 (xhdpi)
144 × 144 (xxhdpi)
192 × 192 (xxxhdpi)
512 × 512 (Google Play store)

Action bar, Dialog & Tab icons 操作栏,对话框和选项卡图标

24 × 24 area in 32 × 32 (mdpi)
36 × 36 area in 48 × 48 (hdpi)
48 × 48 area in 64 × 64 (xhdpi)
72 × 72 area in 96 × 96 (xxhdpi)
96 × 96 area in 128 × 128 (xxxhdpi)*

Notification icons 通知图标

22 × 22 area in 24 × 24 (mdpi)
33 × 33 area in 36 × 36 (hdpi)
44 × 44 area in 48 × 48 (xhdpi)
66 × 66 area in 72 × 72 (xxhdpi)
88 × 88 area in 96 × 96 (xxxhdpi)*

Small Contextual Icons 小的上下文图标

16 × 16 (mdpi)
24 × 24 (hdpi)
32 × 32 (xhdpi)
48 × 48 (xxhdpi)
64 × 64 (xxxhdpi)*

The xxxhdpi size needed only by the launcher icon as the Supporting multiple Screens official site says. 支持多屏官方网站称,xxxhdpi大小仅由启动器图标所需。


#6楼

LDPI should be 36 x 36. LDPI应为36 x 36。

MDPI 48 x 48. MDPI 48 x 48。

TVDPI 64 x 64. TVDPI 64 x 64。

HDPI 72 x 72. HDPI 72 x 72。

XHDPI 96 x 96. XHDPI 96 x 96。

XXHDPI 144 x 144. XXHDPI 144 x 144。

XXXHDPI 192 x 192. XXXHDPI 192 x 192。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值