Code example for Animation

Methods: setDuration, setInterpolator, setStartOffset

0
	 */ 
	private Animation createInAnimation( int deltaType, int height, int durationMillis, int startOffset ) {
 
		if ( mAnimationIn == null ) {
			mAnimationIn = new TranslateAnimation( deltaType, 0, deltaType, 0, deltaType, height, deltaType, 0 );
			mAnimationIn.setDuration( durationMillis );
			mAnimationIn.setStartOffset( startOffset );
			mAnimationIn.setInterpolator( new AccelerateInterpolator( 0.5f ) );
		} 
		return mAnimationIn;
 
		// return animation; 
	} 
 
	/** 
	 * Sets the on panel open listener. 
	 *  
	 * @param listener 
	 *           the new on panel open listener 
	 */ 
	public void setOnPanelOpenListener( OnPanelOpenListener listener ) {