title: How to change background color for each menu item in NavigationDrawer material design?
body: <p>I use this design layout for <code>NavigationDrawer</code> and commun material design <code>menu.xml</code> but I cannot find a way to make each line of menuitem in different color. How to do it?</p>
  
  <p>Here's my navigation drawer xml:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/transparent"
      android:id="@+id/drawer_layout"
      xmlns:app="http://schemas.android.com/apk/res-auto" &gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/navigation_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          app:itemTextColor="#333"
          app:itemIconTint="#333"
          app:headerLayout="@layout/drawer_header"
          app:menu="@menu/drawer" /&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>