Code example for ObjectAnimator

Methods: reverse

0
        setupAnimation(mQSBSearchBarAnim, mQSBSearchBar);
    } 
 
    public void finishAnimations() { 
        prepareStartAnimation(mDropTargetBar);
        mDropTargetBarAnim.reverse();
        prepareStartAnimation(mQSBSearchBar);
        mQSBSearchBarAnim.reverse();
    } 
 
    /* 
     * Shows and hides the search bar. 
     */ 
    public void showSearchBar(boolean animated) {
        if (!mIsSearchBarHidden) return;
        if (animated) {
            prepareStartAnimation(mQSBSearchBar);
            mQSBSearchBarAnim.reverse();
        } else { 
            mQSBSearchBarAnim.cancel();
            if (mEnableDropDownDropTargets) {