title: SetActionView on menu Item support
body: <p>Hi I am implementing the rotation animation of the refresh icon located on the action bar. When I run my app on newer apis everything works fine. but when I run on api 8 for example I have problems with setActionView. please help.</p>
  
  <pre><code>public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
          case R.id.action_refresh:
  
              item.setActionView(getAnimation());
  
              getCurrency(code,null);
              mViewpager.setVisibility(View.INVISIBLE);
              Log.i("TAG", "refresh pressed =&gt;");
              return true;
          }
  
          // Handle your other action bar items...
  
          return super.onOptionsItemSelected(item);
      }
  </code></pre>
  
  <p>getAnimation method</p>
  
  <pre><code>public View getAnimation(){
          LayoutInflater inflater1 = (LayoutInflater) getActivity().getApplication()
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  ImageView iv = (ImageView) inflater1.inflate(R.layout.action_refresh,
                  null);
                  Animation rotation = AnimationUtils.loadAnimation(getActivity().getApplicationContext(),
                          R.anim.refresh_rotate);
                  rotation.setRepeatCount(Animation.INFINITE);
                  iv.startAnimation(rotation);
                  return iv;
      }
  </code></pre>