I'm writing a new Android app.
How can I use Android native icons in it, such as Edit
pencil icon?
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With