title: How to add click event to item on NavigationView of Android
body: <p>I am trying to implement Sidebar <code>NavigationDrawer</code> in my Android project.
  To do so, I have used <code>NavigationView</code> in <code>DrawerLayout</code>. To show items I used menu. 
  I want to add click event on that added menu items.</p>
  
  <p>Code for reference:
  In navigation 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;item android:id="@+id/nav_account" android:title="My Account"/&gt;
      &lt;item android:id="@+id/nav_settings" android:title="Settings"/&gt;
      &lt;item android:id="@+id/nav_layout" android:title="Log Out"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>In View:</p>
  
  <pre><code>&lt;android.support.design.widget.NavigationView
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          app:menu="@menu/navigation_menu"
          android:layout_gravity="start" /&gt;
  </code></pre>