5

I'm writing a new Android app.

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

informatik01
  • 16,038
  • 10
  • 74
  • 104
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
  • May helps you http://stackoverflow.com/questions/10974548/android-is-there-any-reference-to-see-what-are-android-default-icons-and-images – Mayank Pandya Oct 26 '13 at 21:12

1 Answers1

9

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/

Majid Daeinejad
  • 1,037
  • 8
  • 19