Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a default delete icon in Android?

Tags:

android

I would like to add a delete icon (trashcan) in my actionbar. Is it a default icon can that an app can use or should the icon be a drawable in the app itself?

like image 511
Ivan-Mark Debono Avatar asked Jun 11 '15 14:06

Ivan-Mark Debono


People also ask

How to disable icon in Android?

To Disable App Icon Badges Entirely If your Samsung Galaxy smartphone runs Android 11 or 12, open the Settings app and head into the "Notifications" menu. Then, tap "Advanced settings" and toggle off the "App icon badges" switch.

How do I create an Android app icon?

Run Image Asset StudioRight-click the res folder and select New > Image Asset. Continue by following the steps to: If your app supports Android 8.0, create adaptive and legacy launcher icons. If your app supports versions no higher than Android 7.1, create a legacy launcher icon only.


1 Answers

You can use @android:drawable/ic_menu_delete in your menu XML. This will show the default delete icon across different versions of Android (meaning it will be different on different OS versions). If you want it to be consistent across all versions, you can also download icons from https://github.com/google/material-design-icons and include them in your project drawables folder.

like image 124
T3KBAU5 Avatar answered Oct 18 '22 10:10

T3KBAU5