如何调用android内置图片,比如menu->add的加号图片,search的放大镜图片
可以在android源代码里找 \frameworks\base\core\res\res\drawable\
http://developer.android.com/guide/practices/ui_guidelines/icon_design.html
Standard menu icons
Shown below are standard menu icons that are included in the Android platform (as of Android 1.5). You can reference any of these icon resources from your application as needed, but make sure that the action you assign to the icon is consistent with that listed. Note that this is not a complete list of icons and that the actual appearance of standard icons may change across platform versions.
To reference one of the icons from your code, useandroid.R.drawable.<icon_resource_identifier>
. For example, you can call a menu item'ssetIcon()
method and pass the resource name:
.setIcon(android.R.drawable.ic_menu_more);
.
You could reference the same icon from a layout file usingandroid:icon="@android:drawable/ic_menu_more">
.
To determine the resource ID for an icon listed below, hover over the icon or simply look at image filenames, which use the format "<icon_resource_identifier>.png".
Add | Call | Camera | Clear / Close / Cancel / Discard | Compass | Delete | Directions |
Edit | Gallery | Help | Info / details | Map mode | My Location | More |
Preferences | Rotate | Save | Send | Search | Share | Upload |
View | Zoom |
更多相关文章
- 编译Android(安卓)2.3.1 源代码心得
- [android]编译时出现/usr/bin/ld: skipping incompatible /usr/l
- Android系统Home应用程序(Launcher)的启动过程源代码分析
- UI 开源代码 FileBrowserView
- SSDP协议的Android实现以及使用
- 【Android开发】构建第一个APP
- android游戏编程的学习笔记(以植物大战僵尸等游戏源代码解析为例)
- Android(安卓)自定义UI圆角按钮
- Android4.4系统源代码百度网盘下载