Android的图标大小 [英] Android Icon Sizes

查看:152
本文介绍了Android的图标大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有在Android电子(标签,列表等),创造了特定区域的图标的指导方针和他们​​你将如何大小根据LDPI,MDPI,华电国际等。

I know there are guidelines for creating icons for specific areas in Android (Tab, List, etc.) and how you would size them according to ldpi, mdpi, hdpi etc.

是否有关于如何扩大其他任何规则在应用程序图标?

Are there any rules on how to scale other in-app icons?

我已经得到了10x10像素的微小图标,我用我的MDPI开发的手机上,这将是缩放规则创建LDPI,华电国际和放大器;该图标的xhdpi版本?

I've got a 'tiny' icon of 10x10 px which I am using on my mdpi dev phone, what would be the scaling rules to create ldpi, hdpi & xhdpi versions of that icon?

感谢

戴夫

推荐答案

的比率是0.75 | 1 | 1.33 | 1.5 | 2 | 3 | 4。 (或3:4:6:8:12:16)即,为您的10x10px位图,图形将是

The ratios are .75|1|1.33|1.5|2.|3.|4. (or 3:4:6:8:12:16) That is, for your 10x10px bitmap, the graphics would be

ldpi    - 10x10 * 0.75 = 7x7
mdpi    - 10x10 * 1    = 10x10
tvdpi   - 10x10 * 1.33 = 13x13
hdpi    - 10x10 * 1.5  = 15x15
xhdpi   - 10x10 * 2    = 20x20
xxhdpi  - 10x10 * 3    = 30x30
xxxhdpi - 10x10 * 4    = 40x40

这篇关于Android的图标大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆