Search code examples
androidmenu

Android Menu custom Icon


How can I add a custom icon to my android menu the code below is what I currently have in my xml file.

 <item android:id="@+id/item1" android:icon="@android:drawable/ic_menu_add" android:title="Blog"></item>

the icon is already within my drawable folder


Solution

  • you have to replace this in the xml:

    android:icon="@android:drawable/ic_menu_add"
    

    with

    android:icon="@drawable/your_menu_icon_name"