Code example for Animation

Methods: setAnimationListener

0
 
    private void setupAnimations(Animation in, Animation out) {
        if (K9.showAnimations()) { 
            setInAnimation(in);
            setOutAnimation(out);
            out.setAnimationListener(this);
        } else { 
            setInAnimation(null);
            setOutAnimation(null);
        } 
    } 
 
    private void handleSwitchCompleteCallback() { 
        if (!K9.showAnimations()) { 
            onAnimationEnd(null); 
        } 
    } 
 
    public Animation getFirstInAnimation() {
        return mFirstInAnimation;
    }