简体   繁体   中英

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

I'm writing a new Android app.

How can I use Android native icons in it, such as Edit pencil icon?

if you want to use end-user native android-os icon you must use this resources: for java code:

android.R.drawable.ic_input_delete

and in your layout xml files:

        <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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM