ViewPropertyAnimator cancel - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ViewPropertyAnimator cancel method.

This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:alpha, cancel, setDuration, setListener
This code example shows how to use the following methods:alpha, cancel, setDuration, setListener
			mUndoToken = null;
 
		} 
		else 
		{ 
			mBarAnimator.cancel();
			mBarAnimator.alpha(0);
 
			mBarAnimator.setDuration(mBarView.getResources().getInteger(
					android.R.integer.config_shortAnimTime));
			mBarAnimator.setListener(new AnimatorListenerAdapter()
			{ 
				@Override 
				public void onAnimationEnd(Animator animation)
				{ 
					mBarView.setVisibility(View.GONE);
					mUndoMessage = null;
					mUndoToken = null;
				} 
			}); 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:alpha, cancel
		mHideHandler.removeCallbacks(mHideRunnable);
		mHideHandler.postDelayed(mHideRunnable, ANIMATION_DURATION);
		 
		mShakeView.setVisibility(View.VISIBLE);
		if(Build.VERSION.SDK_INT >= 14)
			mShakeAnimator.cancel();
		if(Build.VERSION.SDK_INT >= 12)
			mShakeAnimator.alpha(1)
						.setDuration(mShakeView.getResources().getInteger(android.R.integer.config_shortAnimTime))
						.setListener(null);
		else { 
			Animation fadeIn = AnimationUtils.loadAnimation(context, android.R.anim.fade_in);
			mShakeView.startAnimation(fadeIn);
		} 
	} 
	 
	@TargetApi(14) 
	public void hideAnimation() { 
		if(Build.VERSION.SDK_INT >= 14)
			mShakeAnimator.cancel();
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:cancel
    } 
 
    @Override 
    public void cancel() { 
        if (mViewPropertyAnimator != null) {
            mViewPropertyAnimator.cancel();
        } 
    } 
 
    @Override 
    public Animator clone() {
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
    public void end() { 
        throw new RuntimeException("Not implemented");
    } 
 
    @Override 
3
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:alpha, cancel
    } 
 
    public void hideUndoBar(boolean immediate) {
        removePreviousHandlerCallback(); 
        if (!immediate) {
            animator.cancel();
            animateFadeOut(); 
        } else { 
            removeBarView(); 
        } 
    } 
 
    private void removeBarView() { 
        undoBarView.setVisibility(View.GONE);
        undoBarView.setAlpha(ALPHA_MIN);
    } 
 
    private void animateFadeOut() { 
        setAnimationDuration(ALPHA_MIN).setListener(new AnimatorListenerAdapter() {
            @Override 

4
CodeRank
Experience pair programming with AI  Get Codota for Java
cancel Method Overview
Cancels all property animations that are currently running or pending.
See Code Examples for other Android ViewPropertyAnimator Methods: