问题描述
Android SDK中提供的标准菜单图标通过 android.R.drawable.X
。然而,一些标准的图标,如 ic_menu_refresh
(刷新图标),缺少从 android.R
。
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的可绘制 罢工>的网站,但我想,以获得正确的华电国际的 MDPI 和 LDPI 的版本,preferable原有的。
I know the 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] /平台/ android- [版本] /数据/ 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菜单图标,例如刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!