title: Scrolling animation in NavigationView
body: <p>My activity has a <code>NavigationView</code> inside a <code>DrawerLayout</code>.</p>
  
  <p>When user clicks on a button in the NavigationView header, I would like to scroll to top the <code>DrawerLayout/NavigationView</code> with an animation.</p>
  
  <p>It seems that NavigationView and DrawerLayout don't provide a method to get the actual scroll position (<code>getScrollY()</code> and <code>getScrollX()</code> always return 0) and so I can't do that.</p>
  
  <p>How can I scroll to top with an animation?</p>
  
  <pre><code>&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;!-- My content --&gt;
  
       &lt;android.support.design.widget.NavigationView
           android:id="@+id/navigation"
           android:layout_width="wrap_content"
           android:layout_height="match_parent"
           android:layout_gravity="start"
           app:headerLayout="@layout/navigation_view_header"
           app:menu="@menu/my_navigation_items" /&gt;
   &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>