调用 Android 内置图片的方法
2010-02-27 04:25:00 来源:WEB开发网可以在android源代码里找 frameworksasecoreesesdrawable
android.com/guide/practices/ui_guidelines/icon_design.html">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, use android.R.drawable.. 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 ".png".
Add
Call
Camera
Clear / Close / Cancel / Discard
Compass
- ››Android 当修改一些代码时,使用什么编译命令可以最...
- ››Android 如何添加一个apk使模拟器和真机都编译进去...
- ››Android 修改Camera拍照的默认保存路径
- ››Android 如何修改默认输入法
- ››android开发中finish()和System.exit(0)的区别
- ››Android手势识别简单封装类
- ››android中查看项目数字证书的两种方法
- ››Android中获取IMEI码的办法
- ››android 相机报错 setParameters failed
- ››Android重启运用程序的代码
- ››Android为ListView的Item设置不同的布局
- ››android bitmap与base64字符串的互相转换
更多精彩
赞助商链接