public T hide(boolean animate) {
        mIsHidden = true;
        if (isWeakReferenceValid()) {
            TextView textView = mTextViewRef.get();
            if (animate) {
                ViewPropertyAnimatorCompat animatorCompat = ViewCompat.animate(textView);
                animatorCompat.cancel();
                animatorCompat.setDuration(mAnimationDuration);
                animatorCompat.scaleX(0).scaleY(0);
                animatorCompat.setListener(new ViewPropertyAnimatorListener() {
                    @Override
                    public void onAnimationStart(View view) {
                        // Empty body
                    }

                    @Override
                    public void onAnimationEnd(View view) {
                        view.setVisibility(View.GONE);
                    }

                    @Override
                    public void onAnimationCancel(View view) {
                        view.setVisibility(View.GONE);
                    }
                });
                animatorCompat.start();
            } else {
                textView.setVisibility(View.GONE);
            }
        }
        return getSubInstance();
    }
public T hide ( boolean animate ) { mIsHidden = true ; if ( isWeakReferenceValid ( ) ) { TextView textView = mTextViewRef . get ( ) ; if ( animate ) { ViewPropertyAnimatorCompat animatorCompat = ViewCompat . animate ( textView ) ; animatorCompat . cancel ( ) ; animatorCompat . setDuration ( mAnimationDuration ) ; animatorCompat . scaleX ( 0 ) . scaleY ( 0 ) ; animatorCompat . setListener ( new ViewPropertyAnimatorListener ( ) { @ Override public void onAnimationStart ( View view ) { } @ Override public void onAnimationEnd ( View view ) { view . setVisibility ( View . GONE ) ; } @ Override public void onAnimationCancel ( View view ) { view . setVisibility ( View . GONE ) ; } } ) ; animatorCompat . start ( ) ; } else { textView . setVisibility ( View . GONE ) ; } } return getSubInstance ( ) ; }
@param animate whether to animate the change
@return this, to allow builder pattern