I am trying to port an android application that uses png resources for icons. I could successfully use it in the navigation box using the list view. But I could not use it in navigation mode, specifying it in the XML menu file.
This is what I got when I tried using Navigation Drawer

I do not know how to use the icons in the navigation view to get the marked icons.
<group android:checkableBehavior="single"> <item android:id="@+id/nav_apple" android:icon="@drawable/ic_menu_apple" android:title="Apple" /> <item android:id="@+id/nav_chrome" android:icon="@drawable/ic_menu_chrome" android:title="Orange" /> <item android:id="@+id/nav_left" android:icon="@drawable/ic_menu_left" android:title="Grapes" /> </group>
How to set these icons using the icon in this menu?
source share