title: How to add checkbox to material navigation drawer?
body: <p>I use Menu items Icon Menu but I want to add checkbox to all menu item. This is my  <strong>drawer_menu.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;group android:checkableBehavior="all"&gt;
      &lt;item
          android:checked="false"
          android:id="@+id/item_navigation_drawer_inbox"
          android:icon="@drawable/ic_inbox_black_24dp"
          android:checkable="true"
          android:title="Inbox" /&gt;
      &lt;item
          android:id="@+id/item_navigation_drawer_starred"
          android:icon="@drawable/ic_action_toggle_star"
          android:checkable="true"
          android:title="Starred" /&gt;
      &lt;item
          android:id="@+id/item_navigation_drawer_sent_mail"
          android:icon="@drawable/ic_action_content_send"
          android:checkable="true"
          android:title="Sent mail" /&gt;
      &lt;item
          android:id="@+id/item_navigation_drawer_drafts"
          android:icon="@drawable/ic_action_content_drafts"
          android:checkable="true"
          android:title="Drafts"
          /&gt;
  &lt;/group&gt;
  
  &lt;item android:title="Subheader"&gt;
      &lt;menu&gt;
          &lt;item
              android:id="@+id/item_navigation_drawer_settings"
              android:icon="@drawable/ic_action_content_mail"
              android:title="Settings" /&gt;
          &lt;item
              android:id="@+id/item_navigation_drawer_help_and_feedback"
              android:icon="@drawable/ic_action_action_delete"
              android:title="Help and feedback" /&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>There is icon and text.  I want also add checkbox with all of them.</p>
  
  <pre><code>[icon] [some text]  [checkbox]
  </code></pre>
  
  <p>like this.</p>
  
  <p>I use material navigation drawer on my code.</p>
  
  <p>This is my <strong>nav_header.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="192dp"
  android:gravity="bottom"
  android:theme="@style/ThemeOverlay.AppCompat.Dark"&gt;
  
  &lt;ImageView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:scaleType="centerCrop"
      android:background="@drawable/bg_ist_nav_img" /&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="52dp"
      android:layout_gravity="left|bottom"
      android:gravity="center"
      android:orientation="vertical"
      android:paddingBottom="8dp"
      android:paddingLeft="16dp"
      android:paddingRight="16dp"&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:gravity="center_vertical"
          android:text="text"
          android:textSize="30sp"
          android:textAppearance="@style/TextAppearance.AppCompat.Body2" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>and finally this is my <strong>activity_main.xml</strong></p>
  
  <pre><code> &lt;android.support.v4.widget.DrawerLayout 
  xmlns:andro id="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/drawer_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
  
      &lt;FrameLayout
          android:layout_width="match_parent"
          android:layout_height="@dimen/status_bar_kitkat_height"
          android:background="?colorPrimary"/&gt;
  
      &lt;FrameLayout
          android:layout_width="match_parent"
          android:layout_height="@dimen/status_bar_lollipop_height"
          android:background="?colorPrimaryDark"/&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;FrameLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/status_bar_margin_top"&gt;
  
      &lt;TextView
          android:id="@+id/textView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:text="Inbox"
          android:textAppearance="@style/TextAppearance.AppCompat.Display1"
          android:textColor="@color/md_text" /&gt;
  
  
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?actionBarSize"
          android:background="?attr/colorPrimary"
          android:elevation="4dp"
          app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
          app:theme="@style/ToolbarTheme" /&gt;
  
  &lt;/FrameLayout&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"
      android:fitsSystemWindows="@bool/fitsSystemWindows"
      app:headerLayout="@layout/navigation_drawer_header"
      app:menu="@menu/navigation_drawer_menu"
      app:theme="@style/NavigationViewTheme" /&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>