WEB开发网
开发学院手机开发Android 开发 调用 Android 内置图片的方法 阅读

调用 Android 内置图片的方法

 2010-02-27 04:25:00 来源:WEB开发网   
核心提示:可以在android源代码里找 frameworksasecoreesesdrawableandroid.com/guide/practices/ui_guidelines/icon_design.html">http://developer.android.com/guide/practices/ui_g

可以在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".

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158128.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

Add

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158717.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

Call

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158510.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

Camera

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158821.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

Clear / Close / Cancel / Discard

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158549.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

Compass

<a target=Android asset" src="http://tech.cncms.com/tech/UploadPic/2010910/2010910194158703.jpg" width="48" height="48" border="0" onload="return imgzoom(this,550);" style="cursor:pointer;" onclick="javascript:window.open(this.src);"/>

1 2 3  下一页

Tags:调用 Android 内置

编辑录入:coldstar [复制链接] [打 印]
赞助商链接