title: NavigationView OnNavigationItemSelectedListener not being called
body: <p>I am trying to use <a href="https://d.android.com/reference/android/support/design/widget/NavigationView" rel="noreferrer"><code>NavigationView</code></a> from Android Support Design library in my app. For some reason, <a href="https://d.android.com/reference/android/support/design/widget/NavigationView.OnNavigationItemSelectedListener" rel="noreferrer"><code>OnNavigationItemSelected</code></a> listener is not being called. Here is my code</p>
  
  <p>Activity Layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="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"
      android:fitsSystemWindows="true"&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:headerLayout="@layout/drawer_header"
          app:menu="@menu/drawer_menu" /&gt;
  
              &lt;FrameLayout
                  android:id="@+id/content_frame"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>Activity onCreate()</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(getLayoutID());
  
      toolbar = (Toolbar) findViewById(R.id.activity_toolbar);
      setSupportActionBar(toolbar);
      toolbar.inflateMenu(R.menu.common_menu);
      final ActionBar actionBar = getSupportActionBar();
      if (actionBar != null) {
          actionBar.setHomeAsUpIndicator(R.drawable.ic_menu_white_24dp);
          actionBar.setDisplayHomeAsUpEnabled(true);
      }
  
      drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
      navigationView = (NavigationView) findViewById(R.id.navigation_view);
      navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {
          @Override
          public boolean onNavigationItemSelected(final MenuItem menuItem) {
              Snackbar.make(contentLayout, menuItem.getTitle() + " pressed", Snackbar.LENGTH_LONG).show();
              menuItem.setChecked(true);
              // allow some time after closing the drawer before performing real navigation
              // so the user can see what is happening
              drawerLayout.closeDrawer(GravityCompat.START);
              mDrawerActionHandler.postDelayed(new Runnable() {
                  @Override
                  public void run() {
                      navigate(menuItem.getItemId());
                  }
              }, DRAWER_CLOSE_DELAY_MS);
              drawerLayout.closeDrawers();
              return true;
          }
  
      });
      usernameTextView = (TextView) findViewById(R.id.drawer_header_username);                  
      usernameTextView.setText(getAppDContext().getAccount().getUsername());
     }
  </code></pre>