Code example for ObjectAnimator

Methods: addListenersetDurationsetInterpolator

0
        v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
        v.buildLayer();
    } 
 
    private void setupAnimation(ObjectAnimator anim, final View v) {
        anim.setInterpolator(sAccelerateInterpolator);
        anim.setDuration(sTransitionInDuration);
        anim.addListener(new AnimatorListenerAdapter() {
            @Override 
            public void onAnimationEnd(Animator animation) {
                v.setLayerType(View.LAYER_TYPE_NONE, null);
            } 
        }); 
    } 
 
    @Override 
    protected void onFinishInflate() { 
        super.onFinishInflate(); 
 
        // Get the individual components 
Connect your IDE to all the code out there  Get Codota for Java