Code example for AnimationSet

Methods: startNow

0
 
	private Handler handler = new Handler(){
 
		@Override 
		public void handleMessage(Message msg) { 
			set.startNow();  
		} 
		 
	}; 
	 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.animation_layout);
		 
		View view = (View)this.findViewById(R.id.animationLayout);
		Animation scaleLongAnimation = new ScaleAnimation(0, 1, 0, 1,Animation.RELATIVE_TO_SELF, (float)3, Animation.RELATIVE_TO_SELF,0);
		scaleLongAnimation.setInterpolator(MainApp.getContext(),android.R.anim.overshoot_interpolator);	
		scaleLongAnimation.setDuration(1000); 
		 
		Animation tranAnimation = new TranslateAnimation(0,0,0,200);