Code example for ObjectAnimator

Methods: cancel

0
    public void showPostSend() { 
        if (!mAttached) {
            return; 
        } 
 
        mSlowSendAnimator.cancel();
        mTextHint.setVisibility(View.GONE);
 
 
        float currentScale = mScreenshotView.getScaleX();
 
        // Modify the fast clone parameters to match the current scale 
        PropertyValuesHolder postX = PropertyValuesHolder.ofFloat("scaleX",
                new float[] {currentScale, 0.0f});
        PropertyValuesHolder postY = PropertyValuesHolder.ofFloat("scaleY",
                new float[] {currentScale, 0.0f});
        PropertyValuesHolder alpha = PropertyValuesHolder.ofFloat("alpha",
                new float[] {1.0f, 0.0f}); 
        mFastCloneAnimator.setValues(postX, postY, alpha);
 
        // Modify the fadeIn parameters to match the current scale