Code example for ObjectAnimator

Methods: cancel

0
        if (!mIsSearchBarHidden) return;
        if (animated) {
            prepareStartAnimation(mQSBSearchBar);
            mQSBSearchBarAnim.reverse();
        } else { 
            mQSBSearchBarAnim.cancel();
            if (mEnableDropDownDropTargets) {
                mQSBSearchBar.setTranslationY(0);
            } else { 
                mQSBSearchBar.setAlpha(1f);
            } 
        } 
        mIsSearchBarHidden = false;
    } 
    public void hideSearchBar(boolean animated) {
        if (mIsSearchBarHidden) return;
        if (animated) {
            prepareStartAnimation(mQSBSearchBar);
            mQSBSearchBarAnim.start();
        } else { 
Contextual code suggestions in your IDE  Get Codota for Java