Code examples for TranslateAnimation

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.
145:	if (mExpanded) { 
-
149:	anim = new TranslateAnimation(0, -offset, 0, 0); 
150:	mFillOffset = -offset; 
151:	} 
152:	mExpanded = !mExpanded; 
153:	anim.setFillEnabled(true); 
Full Snippet Info
9
CodeRank
55:	anim=new TranslateAnimation(0.0f, 0.0f, 0.0f, 
-
57:	anim.setAnimationListener(collapseListener); 
-
60:	anim.setDuration(speed); 
61:	anim.setInterpolator(new AccelerateInterpolator(1.0f)); 
Full Snippet Info
8
CodeRank
20:	Animation anim = new TranslateAnimation(0, 0, 30, 0); 
21:	Robolectric.shadowOf(anim).setLoadedFromResourceId(id); 
Full Snippet Info
8
CodeRank
33:	Animation translate =  new TranslateAnimation(1f, 2f, 3f, 4f); 
-
42:	assertThat(list.get(1)).isSameAs(translate); 
Full Snippet Info
7
CodeRank
134:	TranslateAnimation anim=new TranslateAnimation(0, x, 0,y); 
135:	anim.setDuration(ANIM_DURATION); 
136:	anim.setAnimationListener(new AnimationListener() { 
Full Snippet Info
7
CodeRank
117:	Animation a = new TranslateAnimation(-dx, 0, -dy, 0); 
118:	a.setFillAfter(true); 
119:	a.setDuration(durationMillis); 
Full Snippet Info
7
CodeRank
145:	anim = new TranslateAnimation(0, -offset, 0, 0); 
-
149:	anim.setFillEnabled(true); 
150:	anim.setFillBefore(true); 
151:	anim.setDuration(300); 
152:	anim.setInterpolator(new AccelerateDecelerateInterpolator()); 
153:	anim.setAnimationListener(new AnimationFiller()); 
Full Snippet Info
7
CodeRank
31:	Animation inFromRight = new TranslateAnimation( 
-
35:	inFromRight.setDuration(DURATION); 
36:	inFromRight.setInterpolator(new AccelerateInterpolator()); 
Full Snippet Info
7
CodeRank
102:	inLeft   = new TranslateAnimation(mWidth, 0, 0, 0); 
103:	inLeft.setAnimationListener(this); 
-
109:	inLeft.setDuration(ANIM_DURATION); 
Full Snippet Info
7
CodeRank
60:	anim=new TranslateAnimation(0.0f, 0.0f, 0.0f, 
-
62:	anim.setAnimationListener(collapseListener); 
Full Snippet Info
7
CodeRank
18:	Animation anim = new TranslateAnimation(0, 0, 30, 0); 
19:	Robolectric.shadowOf(anim).setLoadedFromResourceId(id); 
Full Snippet Info
7
CodeRank
37:	TranslateAnimation move = new TranslateAnimation(Animation.RELATIVE_TO_PARENT, sign * 0.70f, 
-
40:	move.setStartOffset(0); 
41:	move.setDuration(speed); 
42:	move.setFillAfter(true); 
Full Snippet Info
7
CodeRank
453:	animation = new TranslateAnimation(fromXDelta, toXDelta, fromYDelta, toYDelta); 
454:	animation.setDuration(calculatedDuration); 
455:	animation.setAnimationListener(animationListener); 
-
457:	animation.setInterpolator(new LinearInterpolator()); 
-
460:	animation.setInterpolator(mInterpolator); 
-
462:	startAnimation(animation); 
Full Snippet Info
7
CodeRank