Best code examples for Android AnimatorSet class (android.animation.AnimatorSet)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android AnimatorSet class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android AnimatorSet examples from Open Source projects
This code example shows how to use the following methods: play, playSequentially, start
137:	AnimatorSet set = new AnimatorSet(); 
138:	set.playSequentially(moveAnim, skewAnim, wobbleAnim); 
-
140:	set.play(finishDownAnim).before(moveAnim); 
-
142:	set.start(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: playSequentially, start
110:	AnimatorSet set = new AnimatorSet(); 
111:	set.playSequentially(downAnim, stretchAnim, upAnim); 
112:	set.start(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addListener, playTogether, setDuration, start
87:	mSetAnim = new AnimatorSet(); 
-
90:	mSetAnim.addListener(new Animator.AnimatorListener() { 
-
120:	mSetAnim.setDuration(duration); 
121:	mSetAnim.playTogether(anim1, anim2); 
122:	mSetAnim.start(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: play, playSequentially, start
137:	AnimatorSet set = new AnimatorSet(); 
138:	set.playSequentially(moveAnim, skewAnim, wobbleAnim); 
-
140:	set.play(finishDownAnim).before(moveAnim); 
-
142:	set.start(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, start
184:	final AnimatorSet as = mPressedAnim = new AnimatorSet(); 
-
191:	as.playTogether( 
-
195:	as.setDuration(50); 
-
197:	as.playTogether( 
-
204:	as.start(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addListener, playTogether, setDuration, setInterpolator, start
299:	AnimatorSet set = new AnimatorSet(); 
300:	set.playTogether(slidingPanelAnimator, bottomPanelAnimator); 
301:	set.setDuration(duration); 
302:	set.setInterpolator(sDecelerator); 
303:	set.addListener(new MyAnimListener(opening)); 
304:	set.start(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: play
137:	AnimatorSet alphaSeq = new AnimatorSet(); 
138:	alphaSeq.play(alphaAnim); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addListener, play, start
300:	AnimatorSet animatorSet = new AnimatorSet(); 
-
304:	.play(ObjectAnimator 
-
310:	animatorSet.addListener(this); 
311:	animatorSet.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, setInterpolator, start
153:	AnimatorSet s = new AnimatorSet(); 
154:	s.playTogether( 
-
162:	s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25)); 
163:	s.setInterpolator(new android.view.animation.AccelerateInterpolator(3)); 
164:	s.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, start
300:	AnimatorSet animatorSet = new AnimatorSet(); 
-
304:	.play(ObjectAnimator 
-
310:	animatorSet.addListener(this); 
311:	animatorSet.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: play, setDuration, start
67:	AnimatorSet as = new AnimatorSet(); 
68:	as.play(translationRight).before(translationLeft); 
69:	as.play(translationRight).with(translationDown); 
70:	as.play(translationLeft).with(translationUp); 
-
79:	as.setDuration(1500); 
80:	as.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, start
137:	AnimatorSet set = new AnimatorSet(); 
-
140:	set.addListener(mVisAnimListener.withFinalVisibility(visibility)); 
141:	set.play(anim).with(splitAnim); 
142:	set.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: play
137:	AnimatorSet alphaSeq = new AnimatorSet(); 
138:	alphaSeq.play(alphaAnim); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: play
137:	AnimatorSet alphaSeq = new AnimatorSet(); 
138:	alphaSeq.play(alphaAnim); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, setInterpolator, start
153:	AnimatorSet s = new AnimatorSet(); 
154:	s.playTogether( 
-
162:	s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25)); 
163:	s.setInterpolator(new android.view.animation.AccelerateInterpolator(3)); 
164:	s.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, setDuration
118:	mTransitionAnimation = new AnimatorSet(); 
119:	mTransitionAnimation.play(mFadeView).with(mFadePanel); 
120:	mTransitionAnimation.setDuration(CROSSFADE_TIME); 
121:	mTransitionAnimation.addListener(mAnimatorListener); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: play, start
112:	AnimatorSet s = new AnimatorSet(); 
-
145:	s.play(shrink); 
146:	s.play(fadeout); 
147:	s.play(xMove.setDuration(0)).after(FADE_TIME); 
148:	s.play(yMove.setDuration(0)).after(FADE_TIME); 
149:	s.play(fadein).after(FADE_TIME); 
150:	s.play(grow).after(FADE_TIME); 
-
152:	s.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: start
150:	mContentAnim.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, start
67:	final AnimatorSet scalers = new AnimatorSet(); 
68:	scalers.play(animX).with(animY); 
69:	scalers.addListener(new AnimatorListenerAdapter() { 
-
79:	scalers.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, start
300:	AnimatorSet animatorSet = new AnimatorSet(); 
-
304:	.play(ObjectAnimator 
-
310:	animatorSet.addListener(this); 
311:	animatorSet.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: play, setDuration, start
75:	AnimatorSet as = new AnimatorSet(); 
76:	as.play(fadeOut).before(fadeIn); 
77:	as.setDuration(2000); // 2 secs 
78:	as.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, setDuration, start
206:	set = new AnimatorSet(); 
-
211:	set.play(scalexAnimator).with(scaleyAnimator); 
212:	set.setDuration(1000); 
213:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, playTogether, setInterpolator, start
159:	AnimatorSet set = new AnimatorSet(); 
160:	set.playTogether(animation1, animation2, animation3, animation4, 
-
162:	set.setInterpolator(new AccelerateDecelerateInterpolator()); 
163:	set.addListener(new AnimatorListener() { 
-
190:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, play, start
294:	final AnimatorSet mAnimatorSet = new AnimatorSet(); 
-
297:	mAnimatorSet.play( 
-
302:	mAnimatorSet.addListener(this); 
303:	mAnimatorSet.start(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addListener, play, setDuration, setInterpolator, start
377:	AnimatorSet set = new AnimatorSet(); 
378:	set.play(ObjectAnimator 
-
389:	set.setDuration(mShortAnimationDuration); 
390:	set.setInterpolator(new DecelerateInterpolator()); 
391:	set.addListener(new AnimatorListenerAdapter() { 
-
406:	set.start(); 
407:	mCurrentAnimator = set; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, setInterpolator, start
153:	AnimatorSet s = new AnimatorSet(); 
154:	s.playTogether( 
-
162:	s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25)); 
163:	s.setInterpolator(new android.view.animation.AccelerateInterpolator(3)); 
164:	s.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, playSequentially, start
137:	AnimatorSet set = new AnimatorSet(); 
138:	set.playSequentially(moveAnim, skewAnim, wobbleAnim); 
-
140:	set.play(finishDownAnim).before(moveAnim); 
-
142:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, setDuration, start
83:	AnimatorSet as = new AnimatorSet(); 
84:	as.play(fadeOut).before(fadeIn); 
85:	as.setDuration(2000); //2 secs 
86:	as.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, playTogether, start
139:	animatorSet.addListener(this); 
140:	animatorSet.start(); 
-
154:	animatorSet = new AnimatorSet(); 
155:	animatorSet.playTogether(xAnim,yAnim); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, setInterpolator, start
154:	AnimatorSet s = new AnimatorSet(); 
155:	s.playTogether( 
-
163:	s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25)); 
164:	s.setInterpolator(new android.view.animation.AccelerateInterpolator(3)); 
165:	s.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, playSequentially, start
137:	AnimatorSet set = new AnimatorSet(); 
138:	set.playSequentially(moveAnim, skewAnim, wobbleAnim); 
-
140:	set.play(finishDownAnim).before(moveAnim); 
-
142:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, setInterpolator, start
154:	AnimatorSet s = new AnimatorSet(); 
155:	s.playTogether( 
-
163:	s.setDuration((int)(LAUNCH_ZOOM_TIME * 1.25)); 
164:	s.setInterpolator(new android.view.animation.AccelerateInterpolator(3)); 
165:	s.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, play, start
149:	AnimatorSet set = new AnimatorSet(); 
-
152:	set.addListener(mVisAnimListener.withFinalVisibility(visibility)); 
153:	set.play(anim).with(splitAnim); 
154:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playTogether, setDuration, start
148:	AnimatorSet as = new AnimatorSet(); 
-
155:	as.playTogether( 
-
159:	as.setDuration(50); 
-
161:	as.playTogether( 
-
168:	as.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, play, start
78:	AnimatorSet anim=new AnimatorSet(); 
79:	AnimatorSet.Builder b = anim.play(android.animation.ObjectAnimator.ofFloat(mBtn1, "alpha", 0)); 
-
82:	anim.addListener(new AnimatorListener() { 
-
107:	anim.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playSequentially, start
73:	AnimatorSet set = new AnimatorSet(); 
74:	set.playSequentially(downAnim, stretchAnim, upAnim); 
75:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, playTogether, start
183:	AnimatorSet aset = new AnimatorSet(); 
-
194:	aset.addListener(new AnimatorListener(){ 
-
228:	aset.playTogether(items); 
229:	aset.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play
12:	animSet = new AnimatorSet(); 
13:	animSet.play(animatorAlpha); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playTogether
13:	animSet = new AnimatorSet(); 
14:	animSet.playTogether(animatorScaleY, animatorPivotY); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playSequentially, start
110:	AnimatorSet set = new AnimatorSet(); 
111:	set.playSequentially(downAnim, stretchAnim, upAnim); 
112:	set.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, start
104:	AnimatorSet animatorSet = new AnimatorSet(); 
105:	animatorSet.play(center).with(scaleXAnim); 
106:	animatorSet.play(fadeAnim).with(scaleXAnim); 
107:	animatorSet.play(scaleYAnim).with(scaleXAnim); 
-
110:	animatorSet.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, play, start
300:	AnimatorSet animatorSet = new AnimatorSet(); 
-
304:	.play(ObjectAnimator 
-
310:	animatorSet.addListener(this); 
311:	animatorSet.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addListener, setDuration, start
87:	animatorSet.addListener(new ClickAnimatorListener(viewId, this)); 
88:	animatorSet.setDuration(SLIDE_DURATION); 
89:	animatorSet.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: play, start
72:	AnimatorSet animatorSet = new AnimatorSet(); 
-
78:	animatorSet.play(anim); 
-
90:	animatorSet.play(anim).with(scrollAnim); 
-
94:	animatorSet.start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: playTogether, start
178:	if(navAnim != null) { 
179:	navAnim.start(); 
180:	} else if(sbAnim != null) { 
Full Snippet Info
5
CodeRank
Related Android AnimatorSet Questions & Answers:
Other Android AnimatorSet Examples
18:	  private int width;
19:	  private int height;
20:	  private AnimatorSet set;
21:	
22:	  @Override
-
54:	  }
55:	
56:	  private AnimatorSet createAnimation() {
57:	    int nextX = randon.nextInt(width);
58:	    int nextY = randon.nextInt(height);
-
62:	    animation2 = ObjectAnimator.ofFloat(button, "y", nextY);
63:	    animation2.setDuration(1400);
64:	    AnimatorSet set = new AnimatorSet();
65:	    set.playTogether(animation1, animation2);
66:	    return set;
-
62:	    animation2 = ObjectAnimator.ofFloat(button, "y", nextY);
63:	    animation2.setDuration(1400);
64:	    AnimatorSet set = new AnimatorSet();
65:	    set.playTogether(animation1, animation2);
66:	    return set;

Read More

See Code Examples for Android AnimatorSet Methods: