Code example for AnimatorSet

Methods: cancel

0
        }); 
    } 
 
    private void cancelAnimations() { 
        mDropTargetBarFadeInAnim.cancel();
        mDropTargetBarFadeOutAnim.cancel();
        mQSBSearchBarFadeInAnim.cancel();
        mQSBSearchBarFadeOutAnim.cancel();
    } 
 
    /* 
     * Shows and hides the search bar. 
     */ 
    public void showSearchBar(boolean animated) {
        cancelAnimations(); 
        if (animated) {
            if (mShowQSBSearchBar) {
                mQSBSearchBarFadeInAnim.start();
            } 
        } else { 
            if (mShowQSBSearchBar) {