Code examples for Animation

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
168:	animation.setStartOffset(startOffset); 
169:	animation.setDuration(duration); 
170:	animation.setInterpolator(interpolator); 
171:	animation.setFillAfter(true); 
-
222:	animation.setAnimationListener(new AnimationListener() { 
Full Snippet Info
8
CodeRank
116:	if (old != null && !old.hasEnded()) { 
117:	old.cancel(); 
Full Snippet Info
7
CodeRank
123:	fadeIn.setInterpolator(new DecelerateInterpolator()); 
124:	fadeIn.setDuration(200); 
Full Snippet Info
7
CodeRank
69:	mAnimation.setAnimationListener(new Animation.AnimationListener() { 
-
84:	mAnimation.setRepeatCount(0); 
Full Snippet Info
7
CodeRank
673:	anim.setDuration(1000); // plenty of time for transitions 
-
680:	anim.setAnimationListener(mAnimationDoneListener); 
Full Snippet Info
6
CodeRank
127:	fadeOut.setInterpolator(new AccelerateInterpolator()); 
128:	fadeOut.setDuration(200); 
Full Snippet Info
7
CodeRank
90:	mMorphAnimation.setFillBefore(false); 
-
92:	mMorphAnimation.setFillAfter(true); 
93:	mMorphAnimation.setInterpolator(interpolator); 
94:	mMorphAnimation.setAnimationListener(new Animation.AnimationListener() { 
Full Snippet Info
6
CodeRank
74:	inAnimation.setFillAfter(true); 
75:	inAnimation.setDuration(DEFAULT_DURATION); 
76:	inAnimation.setStartOffset(DEFAULT_DURATION); 
77:	inAnimation.setAnimationListener(new AnimationListener() { 
Full Snippet Info
6
CodeRank
28:	mAnimation.setFillBefore(true); 
-
30:	mDuration = mAnimation.getDuration(); 
-
32:	mAnimation.setStartTime(Animation.START_ON_FIRST_FRAME); 
33:	mAnimation.initialize(mView.getWidth(), mView.getHeight(), mView.getWidth(), mView.getHeight()); 
34:	Log.d(TAG, "start(" + anim.getClass().getSimpleName() + ")"); 
Full Snippet Info
6
CodeRank
51:	scanAnimationBegin.setDuration(1500); 
52:	scanAnimationBegin.setFillAfter(true); 
53:	scanAnimationBegin.setRepeatMode(TranslateAnimation.REVERSE); 
54:	scanAnimationBegin.setRepeatCount(TranslateAnimation.INFINITE); 
55:	scanAnimationBegin.setInterpolator(new AccelerateDecelerateInterpolator()); 
Full Snippet Info
6
CodeRank
64:	flip.setAnimationListener(this); 
Full Snippet Info
6
CodeRank
120:	animation.setStartOffset(startOffset); 
121:	animation.setDuration(duration); 
122:	animation.setInterpolator(interpolator); 
123:	animation.setFillAfter(true); 
-
169:	animation.setAnimationListener(new AnimationListener() { 
Full Snippet Info
6
CodeRank
56:	animation.setStartTime(AnimationUtils.currentAnimationTimeMillis()); 
Full Snippet Info
6
CodeRank
67:	animFadeout.setDuration(fadeDuration); 
68:	animFadeout.setRepeatCount(0); 
69:	animFadeout.setInterpolator(new LinearInterpolator()); 
-
71:	animFadeout.setFillEnabled(true); 
72:	animFadeout.setFillAfter(true); 
Full Snippet Info
6
CodeRank
33:	anim.setRepeatMode(Animation.REVERSE); 
34:	anim.setRepeatCount(Animation.INFINITE); 
35:	anim.setDuration(10000L); 
36:	anim.setInterpolator(new AccelerateDecelerateInterpolator()); 
Full Snippet Info
6
CodeRank
184:	animation.getTransformation(AnimationUtils.currentAnimationTimeMillis(), transformation); 
Full Snippet Info
6
CodeRank
117:	inFlip.setDuration(duration); 
118:	inFlip.setFillAfter(true); 
119:	inFlip.setInterpolator(new DecelerateInterpolator()); 
120:	inFlip.setStartOffset(duration); 
Full Snippet Info
6
CodeRank
72:	right_hide_anim.setDuration(300); 
73:	right_hide_anim.setFillEnabled(true); 
74:	right_hide_anim.setFillBefore(true); 
75:	right_hide_anim.setFillAfter(true); 
76:	right_hide_anim.setAnimationListener(this); 
Full Snippet Info
6
CodeRank