我应该用我的Andr​​oid 1.x和2.x应用程序部署什么样的图标? [英] What kind of icon should I deploy with my Android 1.x and 2.x application?

查看:126
本文介绍了我应该用我的Andr​​oid 1.x和2.x应用程序部署什么样的图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事情是这样的,在Android的1.5和1.6,我们有的图标设计准则。在本指南中有规范的应用程序图标。每个应用程序都必须符合这一点。然而,在最近的Andr​​oid版本(2.0和2.1)的图标都从旧改到这个新的2D平面风格。在Nexus One的每个图标有这种风格,所以连谷歌是符合的方针。看高密度和低密度图标之间的差异看到这个的图片,并与其余的相比Evernote的图标。

The thing is this, in Android 1.5 and 1.6 we had the Icon Design Guidelines. In this guide there are specifications for application icons. Every application should conform to this. However, in recent Android versions (2.0 and 2.1) icons have changed from the old to this new flat 2D style. Every icon in Nexus One has this style, so not even Google is conforming to the guideline. To see the differences between high and low density icons see this image and compare Evernote icon with the rest.

我已经能够通过使用两个目录用不同的图标来使用不同的图标:可绘制-华电国际/ icon.png在可绘制/图标巴纽,但并不是每一个安卓2.X将是华电国际,而不是所有的1.x的Andr​​oid设备将是低的像素密度。所以,问题是:

I've been able to use different icons by using two directories with different icons: drawables-hdpi/icon.png and drawables/icon.png, BUT not every Android 2.x is going to be HDPI and not every 1.x Android device is going to be low pixel density. So the question is:

我应该在我的apk文件部署不同的图标为不同的Andr​​oid平台的版本?如果我要,我该怎么办呢?

Should I deploy different icons for different Android platform version within my apk file? and if I should, How do I do it?

推荐答案

有额外的资源标识符,你可以用它来针对一个设备上运行的特定的Andr​​oid版本。

There are additional resource identifiers you can use to target the particular Android version running on a device.

例如,你可以使用绘制-V3 为Android 1.5和1.6,绘制-V5 为Android 2.0及以上(或相当绘制-LDPI-V5 绘制-MDPI-V5 在实践中可绘制-HDPI-V5 )。

For example, you could use drawable-v3 for Android 1.5 and 1.6, and drawable-v5 for Android 2.0 and above (or rather drawable-ldpi-v5, drawable-mdpi-v5 and drawable-hdpi-v5 in practice).

您需要有三个图标三个不同的屏幕密度反正(否则,它看起来不结垢后那么好),因此增加一个额外的目录/图标为Android 1.5并没有那么糟糕。

You need to have the three icons for the three different screen densities anyway (otherwise, it doesn't look so good after scaling), so adding an extra directory/icon for Android 1.5 isn't so bad.

或者你可以只沟Android 1.5的文件夹,并让它有一个平的图标—我敢肯定用户不会特别麻烦。

Or you could just ditch the Android 1.5 folder and let it have a "flat" icon — I'm sure users wouldn't be particularly bothered.

这篇关于我应该用我的Andr​​oid 1.x和2.x应用程序部署什么样的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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