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 ) ; }
Sets a new action transition .