title: Android NavigationView MenuItem Icon Animation
body: <p>I'm trying to understand if menu icon animation should work in the new 
  Navigationview, the same way action items animation works or any other view for that matter, that is used on any app layout.</p>
  
  <p>The code below doesn't work for me. 
  I'm using for testing the code sample released by Android for the new support
  library. 
  Same animation code works nicely on the toolbar. Also tried the older API for 
  animation (followed that link: <a href="https://stackoverflow.com/questions/9731602/animated-icon-for-actionitem">Animated Icon for ActionItem</a>)</p>
  
  <p>I guess I'm missing something...</p>
  
  <p>thanks ahead.</p>
  
  <p>Code:</p>
  
  <p>Xml:</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_height="match_parent"
      android:layout_width="match_parent"
      android:fitsSystemWindows="true"
      android:background="@color/lightPrimaryColor"&gt;
  
      &lt;include layout="@layout/include_list_viewpager"/&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/nav_view"
          android:layout_height="match_parent"
          android:layout_width="wrap_content"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          android:background="@color/lightPrimaryColor"
          app:headerLayout="@layout/nav_header"
          app:theme="@style/menu_item_style"
          app:menu="@menu/drawer_view"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>drawer_view:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:class="http://schemas.android.com/tools"
      class:actionViewClass="android.widget.ProgressBar"&gt;
  
      &lt;group android:checkableBehavior="single"
          android:id="@+id/drawer_menu"&gt;
          &lt;!--   &lt;item
             android:id="@+id/nav_my_lists"
             android:title="@string/title_shopping_lists"
             android:icon="@drawable/ic_event"
             app:showAsAction="always"/&gt; --&gt;
          &lt;item
              android:id="@+id/nav_examp_lists"
              android:icon="@drawable/refresh1"
              android:title="@string/example"
              app:showAsAction="always"
              android:layoutDirection="rtl"/&gt;
          &lt;item
              android:id="@+id/nav_split_lists"
              android:title="@string/split"
              android:icon="@drawable/refresh2"
              app:showAsAction="always"
              app:actionViewClass="android.widget.ImageView"/&gt;
          &lt;item
              android:id="@+id/nav_change_net"
              android:title="@string/change"
              android:icon="@drawable/refresh3"
              app:showAsAction="always"
              android:layoutDirection="rtl"/&gt;
  
      &lt;/group&gt;
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>navigationView.setNavigationItemSelectedListener(
                  new NavigationView.OnNavigationItemSelectedListener() {
              @Override
              public boolean onNavigationItemSelected(MenuItem menuItem) {
  
                 menuItem.setChecked(true);
                 mDrawerLayout.closeDrawers();
  
                  switch (menuItem.getItemId()) {
  
                      case R.id.nav_my_lists:
  
                          anim = AnimatorInflater.loadAnimator(getApplication(), R.animator.rotation);
                          anim.setTarget(menuItem.getIcon());
                          anim.setDuration(2000);
                          //anim.setStartDelay(10);
                          anim.addListener(new AnimatorListenerAdapter() {
                              @Override
                              public void onAnimationStart(Animator animation) {
                                  Toast.makeText(getApplication(), "Started...", Toast.LENGTH_SHORT).show();
                              }
  
                          });
  
                          anim.start();
                          boolean run = anim.isRunning();
  
                          String title = menuItem.getTitle().toString();
                          loadShoppingList(title);
  
                          return true;
  </code></pre>