标准的 Android 菜单图标,例如刷新 [英] Standard Android menu icons, for example refresh
问题描述
Android SDK 通过 android.R.drawable.X
提供标准菜单图标.但是,android.R
中缺少一些标准图标,例如 ic_menu_refresh
(刷新图标).
The Android SDK offers the standard menu icons via android.R.drawable.X
. However, some standard icons, such as ic_menu_refresh
(the refresh icon), are missing from android.R
.
有没有办法获得原始图标,也许是从应用程序中提取它们?我已经查看了 Android 源代码,但是图片太大了,无法到处寻找.
Is there any way to get the original icons, maybe by extracting them from the applications? I already checked the Android source, but it's a bit too huge to look everywhere for the images.
我知道 Android Drawables 网站,但我想获得正确的 hdpi, mdpi 和 ldpi 版本,最好使用原版.
I know the Android Drawables website, but I would like to get the correct hdpi, mdpi and ldpi version, preferable the original ones.
推荐答案
没关系,我在源码中找到了:base.git/core/res/res 和子目录.
Never mind, I found it in the source: base.git/core/res/res and subdirectories.
正如其他人在评论中所说,如果您安装了 Android SDK,它也在您的计算机上.路径为[SDK]/platforms/android-[VERSION]/data/res
.
As others said in the comments, if you have the Android SDK installed it’s also on your computer. The path is [SDK]/platforms/android-[VERSION]/data/res
.
这篇关于标准的 Android 菜单图标,例如刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!