0

I am trying to make a navigation menu with icons and links, but for some reason my icons are not showing. enter image description here

Here is where I added the images in the menu/menu resource file. For some reason the images all appear as circles as seen in the image.

<?xml version="1.0" encoding="utf-8"?>
<group android:checkableBehavior="single">
    <item
        android:id="@+id/menu_home"
        android:icon="@drawable/home"
        android:title="Home" />


    <item
        android:id="@+id/menu_search"
        android:icon="@drawable/search"
        android:title="Search" />


    <item
        android:id="@+id/menu_sell"
        android:icon="@drawable/sell"
        android:title="Sell" />

    <item
        android:id="@+id/menu_wishlist"
        android:icon="@drawable/bookmark"
        android:title="Wishlist" />


    <item
        android:id="@+id/menu_listings"
        android:icon="@drawable/list"
        android:title="Listings" />


    <item
        android:id="@+id/menu_logout"
        android:icon="@drawable/person"
        android:title="Logout" />

</group>
batman567
  • 826
  • 2
  • 12
  • 23
CodingBoy
  • 59
  • 1
  • 7
  • 1
    I believe it's due to `android:checkableBehavior="single"`. It makes the items behave as radio buttons, that's why they appear as circles. – Milack27 Sep 04 '20 at 14:27
  • 2
    Also.. doesn't your file contain a `` tag? If it doesn't, I think you definitely should change `` into ``. – Milack27 Sep 04 '20 at 14:31
  • HI there. I tried changing it to menu but I am still getting the same problem... Is there maybe something else I might be doing wrong? – CodingBoy Sep 04 '20 at 20:30
  • This question may be helpful: https://stackoverflow.com/q/33777318/2679327 – Milack27 Sep 04 '20 at 21:18

0 Answers0