code: public void setAction(final Action fromAction, final Action toAction, final int rotation, long delay) {
  		setAction(fromAction, false, ROTATE_CLOCKWISE);
  		postDelayed(new Runnable() {
  			@Override
  			public void run() {
  				if (!isAttachedToWindow()) {
  					return;
  				}
  				setAction(toAction, true, rotation);
  			}
  		}, delay);
  	}
docs: Sets a new action transition.
  
  @param fromAction The initial action.
  @param toAction   The target action.
  @param rotation   The rotation direction used for the transition {@link #ROTATE_CLOCKWISE} or {@link #ROTATE_COUNTER_CLOCKWISE}.
  @param delay      The delay in ms before the transition is started.