低分辨率(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%.

点赞