简体   繁体   English

如何在我的新应用中使用Android原生图标?

[英]How can I use Android native icons in my new app?

I'm writing a new Android app. 我正在写一个新的Android应用程序。

How can I use Android native icons in it, such as Edit pencil icon? 如何在其中使用Android原生图标,例如Edit铅笔图标?

if you want to use end-user native android-os icon you must use this resources: for java code: 如果你想使用最终用户原生android-os图标你必须使用这个资源:对于java代码:

android.R.drawable.ic_input_delete

and in your layout xml files: 并在您的布局xml文件中:

        <ImageView
        android:id="@+id/ivImage"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:src="@android:drawable/ic_delete" />

and if you want access to physically address of native android icons in your pc go to tthe this address: android-sdk/platforms/[CHOOSE ANDROID VERSION]/data/res/ 如果你想在你的电脑中访问本机android图标的物理地址,请访问以下地址:android-sdk / platforms / [CHOOSE ANDROID VERSION] / data / res /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我怎么能在我的Android应用程序中有一个图标列表; - how can i have a list of icons in my android app; 我如何在我的Android应用程序中显示图标列表; - how can i have a list of icons in my android app; 我可以在android中使用的默认图标? - Default icons I can use in android? 如何使用Android后退按钮在我的应用中移回而不是关闭我的应用? - How can I use the Android back button to move back within my app instead of closing my app? 我的 Android 应用程序如何与本机守护程序通信? - How can my Android app communicate with a native daemon? 如何使用Branch.io深度链接获取我的Android应用并支持最小化/恢复该应用? - How can I get my Android app with use Branch.io Deeplinking AND support minimize/resume the app? java.lang.UnsatisfiedLinkError…如何在Android Studio的Android应用程序中使用C ++文件? - java.lang.UnsatisfiedLinkError… How can I use C++ files in my Android App in Android Studio? 我可以在Android项目中使用新版本的HttpClient吗? - Can I use a new version of HttpClient in my Android project? 如何在我的Android项目中使用Eclipse的新Xtend语言? - How can I use Eclipse's new Xtend language in my Android project? 如何在Android应用程序上打印本机符号? - How can i print native symbols on my android application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM