Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 847
Elad Benda Avatar asked Oct 26 '13 21:10

Elad Benda


People also ask

Can you change Android app icons?

Tap the menu button in the top left, and select My Stuff. At the top of the screen, tap the Icons option. Then tap the icon pack you wish to apply. At the bottom of the page, select the Apply option.

How do you make an Android app an icon?

Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Further follow the path to reach the desired folder to add icon (app → res → mipmap). Step 3 - Add you app icon. You can just simply copy and paste the image in mipmap folder.


1 Answers

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/

like image 66
Majid Daeinejad Avatar answered Sep 23 '22 02:09

Majid Daeinejad