Closed kdawgwilk closed 7 years ago
How would I use the icons in the following XML file that Android Studio generated for the drawer menu item list. I have already added the dependencies and added them to the App class.
activity_main_drawer.xml
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <group android:checkableBehavior="single"> <item android:id="@+id/nav_gallery" android:icon="@drawable/ic_menu_gallery" android:title="Gallery"/> <item android:id="@+id/nav_slideshow" android:icon="@drawable/ic_menu_slideshow" android:title="Slideshow"/> <item android:id="@+id/nav_manage" android:icon="@drawable/ic_menu_manage" android:title="Tools"/> </group> <item android:title="Communicate"> <menu> <item android:id="@+id/nav_share" android:icon="@drawable/ic_menu_share" android:title="Share"/> <item android:id="@+id/nav_send" android:icon="@drawable/ic_menu_send" android:title="Send"/> </menu> </item> </menu>
You have to set it programatically. Please refer to this section of the README.
How would I use the icons in the following XML file that Android Studio generated for the drawer menu item list. I have already added the dependencies and added them to the App class.
activity_main_drawer.xml