title: Navigation Drawer selected item not showing background color for second group of items
body: <p>I have a navigation drawer in my android app, which works fine. The only problem I'm having is, that the gray selection background color of an item does not change whenever I click on a menu item from my secound group of menu items.</p>
  
  <p>Here is a screenshot of my nav drawer:
  <a href="https://i.stack.imgur.com/emti1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/emti1.png" alt="enter image description here"></a></p>
  
  <p>The background color switches whenever I'm selecting an item from the first group, but not when I select one from the second group of items.</p>
  
  <p>Here is my XML-File for the menu:</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="single"&gt;
              &lt;item
                  android:id="@+id/nav_compare"
                  android:icon="@drawable/ic_menu_compare"
                  android:title="@string/nav_item_compare"
                  android:checked="true"/&gt;
              &lt;item
                  android:id="@+id/nav_data"
                  android:icon="@drawable/ic_menu_data"
                  android:title="@string/nav_item_data" /&gt;
              &lt;item
                  android:id="@+id/nav_add_data"
                  android:icon="@drawable/ic_menu_add_data"
                  android:title="@string/nav_item_add_data" /&gt;
              &lt;item
                  android:id="@+id/nav_favorites"
                  android:icon="@drawable/ic_menu_favorites"
                  android:title="@string/nav_item_favorites" /&gt;
              &lt;item
                  android:id="@+id/nav_categories"
                  android:icon="@drawable/ic_menu_categories"
                  android:title="@string/nav_item_categories" /&gt;
              &lt;item
                  android:id="@+id/nav_submit_data"
                  android:icon="@drawable/ic_menu_submit_data"
                  android:title="@string/nav_item_submit_data" /&gt;
      &lt;/group&gt;
  
      &lt;item android:title="@string/navigation_second_group_title"&gt;
          &lt;menu&gt;
              &lt;item
                  android:id="@+id/nav_settings"
                  android:icon="@drawable/ic_menu_settings"
                  android:title="@string/nav_item_settings" /&gt;
              &lt;item
                  android:id="@+id/nav_about"
                  android:icon="@drawable/ic_menu_about"
                  android:title="@string/nav_item_about" /&gt;
              &lt;item
                  android:id="@+id/nav_help"
                  android:icon="@drawable/ic_menu_help"
                  android:title="@string/nav_item_help" /&gt;
          &lt;/menu&gt;
      &lt;/item&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>And here is the Navigation Drawer in my main XML File:</p>
  
  <pre><code>&lt;android.support.design.widget.NavigationView
          android:id="@+id/nav_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          app:headerLayout="@layout/act_main_nav_drawer_header"
          app:menu="@menu/activity_main_drawer" /&gt;
  </code></pre>
  
  <p>Any help would be appreciated, I couldn't find the same issue on google.</p>