title: Change NavigationView items when user is logged
body: <p>My app's main activity has a navigation drawer, instantiated in the XML in this way:</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"
      app:headerLayout="@layout/drawer_header"
      app:menu="@menu/application_drawer"
      android:background="@color/white"/&gt;
  </code></pre>
  
  <p>Now, the menu entry for the navigation drawer is the following:</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/login"
          android:icon="@drawable/ic_action_person"
          android:title="@string/login"/&gt;
      &lt;item
          android:id="@+id/settings"
          android:icon="@drawable/ic_action_settings"
          android:title="@string/settings"/&gt;
      &lt;item
          android:id="@+id/terms"
          android:icon="@drawable/ic_action_about"
          android:title="@string/terms_and_conditions_menu"/&gt;
      &lt;item
          android:id="@+id/about"
          android:icon="@drawable/ic_action_about"
          android:title="@string/info_hotelsclick"/&gt;
  &lt;/group&gt;
  </code></pre>
  
  <p></p>
  
  <p>What I'd like to do is to change the first item (and possibly the others as well) dynamically under some conditions. For instance, I'd like to change the "Login" entry with a "logout" one once the user has logged in ;-)</p>
  
  <p>How can I achieve that? I managed to add an item to the Drawer in this way</p>
  
  <pre><code>    Menu menu = navigationView.getMenu();
      menu.add("Test");
  </code></pre>
  
  <p>but it doesn't sound that good to me, I'm pretty sure there must be a cleaner way.</p>
  
  <p>...but does it?</p>