低分辨率(ldpi)Android图标

关于包含标准图标的主题,Android documentation提到:

Shown below are standard menu icons
that are used in the Android system.
Because these resources can change
between platform versions, you should
not reference the system’s copy of the
resources. If you want use any icons
or other internal drawable resources,
you should store a local copy of those
icons or drawables in your application
resources, then reference the local
copy from your application code. In
that way, you can maintain control
over the appearance of your icons,
even if the system’s copy changes.
Note that the list below is not
intended to be complete.

在我的应用程序中,我使用诸如“ic_menu_sort_alphabetically”之类的标准图标,因此我试图找到这些图标,以便我可以将它们包含在我的应用程序中.

但是,在“android-sdk / platforms / android-8 / android.jar”中我只找到drawable-mdpi和drawable-hdpi中的图标 – 既没有带图标的认drawable文件夹,也没有drawable-ldpi文件夹这些图标的低分辨率版本.但是,需要这样的低分辨率版本才能在ldpi设备(如HTC Wildfire)上提供本机版本.

是否有任何“官方”版本的Android图标在ldpi上缩放?虽然ldpi版本可能存储在我的HTC Wildfire设备的某个地方,但我认为它们的版权归HTC所有,而不是与Android发行版中的图标相同的开源许可证.

解决方法:

如果找不到预先缩放的图像,只需在Photoshop或GIMP中打开mdpi,然后将它们调整75%即可生成ldpi图标.要使hdpi将mdpi图像调整150%.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...