title: How to hide NavigationView ? android:visibility="gone" is not working
body: <p>I am using 2 ( Left and Right ) NavigationView for my app, and want to show right NavigationView for certain conditions only. Hence set its visibility to "GONE" in layout file and will make it visible when it is needed. However even after making it "GONE" right NavigationView keep showing up. </p>
  
  <p>Any thoughts how to hide it ? </p>
  
  <p>
  </p>
  
  <pre><code>&lt;include
      layout="@layout/app_bar_main"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;com.example.girishkhatri.tt0401.NavigationViewRight
      android:id="@+id/nav_right_view"
      android:layout_width="wrap_content"
      android:layout_height="600dp"
      android:layout_marginTop="80dp"
      android:layout_gravity="right"
      android:fitsSystemWindows="true"
      android:visibility="gone"    //not working as expected 
     app:itemBackground="@drawable/nav_item_selector"
      app:headerLayout="@layout/nav_header_right"
       app:menu="@menu/activity_right_drawer" /&gt;
  </code></pre>
  
  <p></p>