Code example for Animation

Methods: setDuration, setInterpolator, setStartOffset

0
	 */ 
	private Animation createOutAnimation( int deltaType, int height, int durationMillis, int startOffset ) {
 
		if ( mAnimationOut == null ) {
			mAnimationOut = new TranslateAnimation( deltaType, 0, deltaType, 0, deltaType, 0, deltaType, height );
			mAnimationOut.setInterpolator( new DecelerateInterpolator( 0.4f ) );
			mAnimationOut.setDuration( durationMillis );
			mAnimationOut.setStartOffset( startOffset );
		} 
		return mAnimationOut;
	} 
 
	/** 
	 * Creates the in animation. 
	 *  
	 * @param deltaType 
	 *           the delta type 
	 * @param height 
	 *           the height 
	 * @param durationMillis 
	 *           the duration millis