Code example for ViewPropertyAnimator

Methods: setListener

0
        animator.addUpdateListener(this);
    } 
 
    public FirstFrameAnimatorHelper(ViewPropertyAnimator vpa, View target) {
        mTarget = target;
        vpa.setListener(this);
    } 
 
    // only used for ViewPropertyAnimators 
    public void onAnimationStart(Animator animation) {
        final ValueAnimator va = (ValueAnimator) animation;
        va.addUpdateListener(FirstFrameAnimatorHelper.this);
        onAnimationUpdate(va);
    } 
 
    public static void setIsVisible(boolean visible) {
        sVisible = visible;
    } 
 
    public static void initializeDrawListener(View view) {
        if (sGlobalDrawListener != null) {