Best code examples for Android ScaleAnimation class (android.view.animation.ScaleAnimation)

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

Android ScaleAnimation examples from Open Source projects
This code example shows how to use the following methods: setDuration, setRepeatCount, setRepeatMode
45:	ScaleAnimation a = new ScaleAnimation(1.0f, 2.0f, 1.0f, 2.0f, 
-
48:	a.setDuration(2000); 
49:	a.setRepeatCount(Animation.INFINITE); 
50:	a.setRepeatMode(Animation.REVERSE); 
51:	view.startAnimation(a); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setDuration, setRepeatCount, setRepeatMode
45:	ScaleAnimation a = new ScaleAnimation(1.0f, 2.0f, 1.0f, 2.0f, 
-
48:	a.setDuration(2000); 
49:	a.setRepeatCount(Animation.INFINITE); 
50:	a.setRepeatMode(Animation.REVERSE); 
51:	view.startAnimation(a); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setDuration, setInterpolator
75:	animation = new ScaleAnimation(1, 2, 1, 2, mImageView.getWidth() / 2.0F, mImageView.getHeight() / 2.0F); 
-
77:	animation.setDuration(3000); 
78:	animation.setInterpolator(this, android.R.anim.bounce_interpolator); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
13:	ScaleAnimation anim = new ScaleAnimation(1, 1, 1.0f, targetScale); 
14:	anim.setDuration(duration); 
15:	anim.setAnimationListener(listener); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setDuration
379:	ScaleAnimation scale = new ScaleAnimation(.667f, 1, .667f, 1, 
-
381:	scale.setDuration(animT); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setFillBefore, setRepeatCount, setRepeatMode
76:	Animation scaleAnimation = new ScaleAnimation(1, 0, 1, 0, 8, 8); 
77:	scaleAnimation.setRepeatCount(Animation.INFINITE); 
78:	scaleAnimation.setRepeatMode(Animation.REVERSE); 
79:	scaleAnimation.setFillBefore(true); 
80:	scaleAnimation.setFillAfter(true); 
81:	scaleAnimation.setDuration(800); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
12:	ScaleAnimation anim = new ScaleAnimation(1, 1, 1.0f, targetScale); 
13:	anim.setDuration(duration); 
14:	anim.setAnimationListener(listener); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setInterpolator
78:	animation = new ScaleAnimation(1, 2, 1, 2, mImageView.getWidth() / 2.0F, 
-
81:	animation.setDuration(3000); 
82:	animation.setInterpolator(this, android.R.anim.bounce_interpolator); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration
303:	ScaleAnimation scale = new ScaleAnimation(.667f, 1, .667f, 1, childSize * 3 / 4, childSize * 3 / 4); 
304:	scale.setDuration(animT); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setRepeatMode
80:	Animation _animation = new ScaleAnimation(0,  1,0, 1,Animation.RELATIVE_TO_SELF, (float)0.5, Animation.RELATIVE_TO_SELF, (float)0.6); 
81:	_animation.setDuration(500); 
82:	_animation.setFillAfter(true); 
83:	_animation.setRepeatMode(Animation.REVERSE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration
13:	ScaleAnimation scale = new ScaleAnimation(.95f, 1f, .95f, 1f, Animation.RELATIVE_TO_SELF, .5f, Animation.RELATIVE_TO_SELF, .5f); 
14:	scale.setDuration(250); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
23:	1, Animation.RELATIVE_TO_SELF, 1); 
24:	a.setDuration(500); 
25:	a.setAnimationListener(new AnimListener()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setFillEnabled
98:	ScaleAnimation scaleAnimation = new ScaleAnimation(1, 1, 1.5f, 1.5f); 
99:	scaleAnimation.setFillEnabled(true); 
100:	scaleAnimation.setFillAfter(true); 
101:	scaleAnimation.setDuration(1000); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration, setFillAfter, setInterpolator, setRepeatCount
334:	Animation anim = new ScaleAnimation(startX, endX, startY, endY, 
-
336:	anim.setDuration(500); // in ms 
337:	anim.setRepeatCount(0); 
338:	anim.setFillAfter(true); 
339:	anim.setInterpolator(new AccelerateDecelerateInterpolator()); 
-
341:	anim.setAnimationListener(new AnimationListener(){ 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator
207:	ScaleAnimation flip = new ScaleAnimation(0f, 1f, 1f, 1f, 
-
210:	flip.setStartOffset(startOffset); 
211:	flip.setDuration(animationDuration); 
212:	flip.setFillEnabled(true); 
213:	flip.setFillAfter(false); 
214:	flip.setFillBefore(false); 
215:	flip.setInterpolator(new DecelerateInterpolator()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setInterpolator
175:	ScaleAnimation sa = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, 
-
177:	sa.setInterpolator(new LinearInterpolator()); 
178:	sa.setDuration(500); 
179:	sa.setFillAfter(false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration
62:	ScaleAnimation zoomIn = new ScaleAnimation(0, 1, 0, 1, Animation.RELATIVE_TO_SELF, .5f, 
-
64:	zoomIn.setDuration(500); 
65:	adView.startAnimation(zoomIn); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setInterpolator, setStartOffset
11:	Animation spin = new ScaleAnimation( 
-
17:	spin.setStartOffset(SPIN_HALFPOINT); 
18:	spin.setDuration(SPIN_HALFPOINT); 
19:	spin.setInterpolator(new AccelerateDecelerateInterpolator()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setInterpolator
91:	scale = new ScaleAnimation(xScale, 
-
116:	scale.setDuration(DURATION); 
117:	scale.setFillAfter(true); 
118:	scale.setInterpolator(getContext(), _interpolator); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: startAnimation, setAnimationListener, setDuration, setFillAfter
63:	ScaleAnimation anim = new ScaleAnimation(params.getFromX(), 
-
67:	anim.setDuration(params.getTime()); 
68:	anim.setFillAfter(true); 
69:	params.getView().startAnimation(anim); 
70:	anim.setAnimationListener(new AnimationListener() { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setInterpolator
94:	scale = new ScaleAnimation(xScale, 
-
119:	scale.setDuration(DURATION); 
120:	scale.setFillAfter(true); 
121:	scale.setInterpolator(getContext(), _interpolator); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
417:	ScaleAnimation animation = new ScaleAnimation(scale, toScale, scale, 
-
419:	animation.setDuration(300); 
420:	animation.setAnimationListener(new ScaleAnimation.AnimationListener() { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setInterpolator
94:	scale = new ScaleAnimation(xScale, 
-
119:	scale.setDuration(DURATION); 
120:	scale.setFillAfter(true); 
121:	scale.setInterpolator(getContext(), _interpolator); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setRepeatCount, setRepeatMode
42:	ScaleAnimation animation = new ScaleAnimation(0.2f, 2.0f, 0.2f, 2.0f, 
-
45:	animation.setDuration(2000); 
46:	animation.setRepeatCount(Animation.INFINITE); 
47:	animation.setRepeatMode(Animation.REVERSE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDuration, setRepeatCount, setRepeatMode
87:	ScaleAnimation animation = new ScaleAnimation(random.nextFloat(), 
-
92:	animation.setDuration(random.nextInt(500) + 100); 
93:	animation.setRepeatCount(Animation.INFINITE); 
94:	animation.setRepeatMode(Animation.REVERSE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setRepeatCount, setStartOffset
147:	Animation animation = new ScaleAnimation(1.0f, 1.4f, 1.0f, 1.4f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); 
-
149:	animation.setStartOffset(0); 
150:	animation.setDuration(500); 
151:	animation.setRepeatCount(Animation.INFINITE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
20:	ScaleAnimation scale = new ScaleAnimation(fromX, toX, fromY, toY, 
-
22:	scale.setDuration(durationMillis); 
23:	scale.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration, setInterpolator
82:	am1 =   new ScaleAnimation(0.0f, 1.0f, 0.0f,1.0f,Animation.RELATIVE_TO_SELF,res[0],Animation.RELATIVE_TO_SELF,res[1]); 
-
84:	am1.setDuration(200); 
85:	am1.setInterpolator(new AccelerateInterpolator());//¼ÓËÙÆ÷ 
86:	am1.setAnimationListener(new AnimationListener(){ 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
45:	ScaleAnimation localScaleAnimation = new ScaleAnimation(1.0F, 0.0F, 1.0F, 0.0F, 1, 0.5F, 1, 0.5F); 
46:	localScaleAnimation.setDuration(paramInt); 
47:	localScaleAnimation.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
21:	ScaleAnimation scale = new ScaleAnimation(fromX, toX, fromY, toY, 
-
23:	scale.setDuration(durationMillis); 
24:	scale.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setFillEnabled
147:	Animation myAnimation_Scale = new ScaleAnimation(currentScale, currentScale + scaleRate, currentScale, currentScale + scaleRate, Animation.RELATIVE_TO_SELF, 0.5f, 
-
152:	myAnimation_Scale.setDuration(100); 
153:	myAnimation_Scale.setFillAfter(true); 
154:	myAnimation_Scale.setFillEnabled(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
78:	ScaleAnimation temperatureAnimation = new ScaleAnimation( 1, 1, currentMultiplier, newMultiplier, Animation.RELATIVE_TO_SELF, 1, Animation.RELATIVE_TO_SELF, 1); 
-
80:	temperatureAnimation.setDuration(200); 
81:	temperatureAnimation.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setInterpolator
169:	ScaleAnimation localScaleAnimation1 = new ScaleAnimation(1.0F, 1.4F, 1.0F, 1.4F, 1, 0.5F, 1, 0.5F); 
170:	localScaleAnimation1.setDuration(50L); 
171:	localScaleAnimation1.setFillAfter(true); 
172:	localScaleAnimation1.setInterpolator(new LinearInterpolator()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
86:	ScaleAnimation anim = new ScaleAnimation(1, 1, 1.0f, targetScale); 
87:	anim.setDuration(duration); 
88:	anim.setAnimationListener(listener); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
78:	ScaleAnimation temperatureAnimation = new ScaleAnimation( 1, 1, currentMultiplier, newMultiplier, Animation.RELATIVE_TO_SELF, 1, Animation.RELATIVE_TO_SELF, 1); 
-
80:	temperatureAnimation.setDuration(200); 
81:	temperatureAnimation.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration, setInterpolator
101:	ScaleAnimation anim = new ScaleAnimation(1,2,1,2, 30, 60); 
-
103:	anim.setDuration(1000); 
-
105:	anim.setInterpolator(new CycleInterpolator(1)); 
106:	anim.setAnimationListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter, setFillBefore
114:	Animation animation = new ScaleAnimation(scale, 1f, scale, 1f, cx, cy); 
115:	animation.setFillAfter(true); 
116:	animation.setFillBefore(true); 
117:	animation.setDuration(400); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setInterpolator
44:	Animation.RELATIVE_TO_SELF, 0.5f); 
45:	myAnimation_Scale.setInterpolator(new AccelerateInterpolator()); 
46:	myAnimation_Scale.setAnimationListener(listener); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
20:	ScaleAnimation anim = new ScaleAnimation( 
-
25:	anim.setDuration(250); 
26:	anim.setFillAfter(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setInterpolator
45:	ScaleAnimation scale = new ScaleAnimation( 
-
55:	scale.setDuration(200); 
-
58:	scale.setInterpolator(new CycleInterpolator(0.5f)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setInterpolator, setRepeatCount
49:	ScaleAnimation scaleAnim = new ScaleAnimation(1f, 0f, 1f, 0f, 
-
52:	scaleAnim.setInterpolator(new LinearInterpolator()); 
53:	scaleAnim.setRepeatCount(ANIM_REPEAT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillAfter
66:	ScaleAnimation _Animation2 = new ScaleAnimation(1, 1.5f, 1, 1.5f, 0.5f,0.5f)  ; 
-
68:	_Animation2.setDuration(2000)  ; 
69:	_Animation2.setFillAfter(false) ; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setDuration, setFillBefore
105:	Animation rotate=new ScaleAnimation(0.0f, 1.0f, 1, 1, Animation.RELATIVE_TO_SELF,0.5f, Animation.RELATIVE_TO_SELF,0.5f); 
106:	rotate.setFillBefore(true); 
107:	rotate.setDuration(ANIM_TIME/2); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
89:	ScaleAnimation anim=new ScaleAnimation(1, 1, 1, 0); 
90:	anim.setDuration(200); 
91:	anim.setAnimationListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setAnimationListener, setDuration
213:	ScaleAnimation scaleAnimation = new ScaleAnimation(1.0f, 0.0f, 1.0f, 0.0f, ScaleAnimation.RELATIVE_TO_SELF, ScaleAnimation.RELATIVE_TO_SELF); 
214:	scaleAnimation.setDuration(durationMillis); 
215:	scaleAnimation.setAnimationListener(animationListener); 
Full Snippet Info
5
CodeRank
Related Android ScaleAnimation Questions & Answers:
See Code Examples for Android ScaleAnimation Methods: