Code example for ObjectAnimator

Methods: reverse

0
 
    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 (mShowQSBSearchBar) {
            if (animated) {
                prepareStartAnimation(mQSBSearchBar);
                mQSBSearchBarAnim.reverse();
            } else { 
                mQSBSearchBarAnim.cancel();
                if (mEnableDropDownDropTargets) {
                    mQSBSearchBar.setTranslationY(0);