Code example for ViewAnimator

Methods: addViewsetInAnimationsetOutAnimationshowNext

0
						//could also be the action listener which is invalid 
						//ongoingAnimation=false; 
					}else { 
						 
						viewAnimator = (ViewAnimator)currentView;
						viewAnimator.addView(unboundNewView);
						//setup animation 
						 
						viewAnimator.setInAnimation(inAnimation);
						viewAnimator.setOutAnimation(outAnimation);
						//trigger the animation and the event listener when finished 
						ongoingAnimation=true;
						viewAnimator.showNext();
						 
					} 
				} 
				return true; 
			} 
 
			return super.onKeyDown(keyCode, event);
Contextual code suggestions in your IDE  Get Codota for Java