如何调用android内置图片,比如menu->add的加号图片,search的放大镜图片

可以在android源代码里找  \frameworks\base\core\res\res\drawable\

 

http://developer.android.com/guide/practices/ui_guidelines/icon_design.html

 

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, use android.R.drawable.<icon_resource_identifier>. For example, you can call a menu item's setIcon() method and pass the resource name:

.setIcon(android.R.drawable.ic_menu_more);.

You could reference the same icon from a layout file using android: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".

Android asset
Add
Android asset
Call
Android asset
Camera
Android asset
Clear / Close / Cancel / Discard
Android asset
Compass
Android asset
Delete
Android asset
Directions
Android asset
Edit
Android asset
Gallery
Android asset
Help
Android asset
Info / details
Android asset
Map mode
Android asset
My Location
Android asset
More
Android asset
Preferences
Android asset
Rotate
Android asset
Save
Android asset
Send
Android asset
Search
Android asset
Share
Android asset
Upload
Android asset
View
Android asset
Zoom


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值