Code example for AlphaAnimation

Methods: cancel

0
	 
	protected void onPause(){ 
		super.onPause(); 
		loadingHandler.removeMessages(0);
		if (animation!=null)
			animation.cancel();
		if (arrow != null){
			arrow.setAnimation(null);
		} 
	} 
	 
	@SuppressLint("HandlerLeak") 
	private class LoadingHandler extends Handler{
		public void handleMessage(Message msg){
 
			arrowDrawables = new Drawable[3];
			arrowDrawables[0] = getResources().getDrawable(R.drawable.tutorial_arrow1);
			arrowDrawables[1] = getResources().getDrawable(R.drawable.tutorial_arrow2);
			arrowDrawables[2] = getResources().getDrawable(R.drawable.tutorial_arrow3);
			 
			animation = new AlphaAnimation(1.F,0.F);