@TargetApi(16) private void playDrawable(NotifyingAnimationDrawable drawable){
  mCurrentDrawable=drawable;
  mCurrentDrawable.setAnimationFinishedListener(this);
  AnimationSeriesListener listener=mListener.get();
  if (listener != null) {
    listener.onAnimationStarting();
  }
  if (mView != null) {
    if (Build.VERSION.SDK_INT >= 16) {
      mView.setBackground(mCurrentDrawable);
    }
 else {
      mView.setBackgroundDrawable(mCurrentDrawable);
    }
  }
  mCurrentDrawable.start();
}

@ TargetApi ( 16 ) private void playDrawable ( NotifyingAnimationDrawable drawable ) { mCurrentDrawable = drawable ; mCurrentDrawable . setAnimationFinishedListener ( this ) ; AnimationSeriesListener listener = mListener . get ( ) ; if ( listener != null ) { listener . onAnimationStarting ( ) ; } if ( mView != null ) { if ( Build . VERSION . SDK_INT >= 16 ) { mView . setBackground ( mCurrentDrawable ) ; } else { mView . setBackgroundDrawable ( mCurrentDrawable ) ; } } mCurrentDrawable . start ( ) ; }
play an animation drawable .
