Code example for Scroller

Methods: startScroll

0
				int duration = computeDuration(event.getX(), dx1);
				System.out.println("Duration is --->>>"+duration);
				if(duration < 250){
					duration = MAX_SETTLE_DURATION; 
				} 
				scroller.startScroll(sx, sy, dx1, 0, 500);
				invalidate();
				velocityTracker.recycle();
			} 
			break; 
		} 
		return true; 
	} 
	 
	private boolean beingDragged(MotionEvent event) {
		float dx = initialPosition - event.getX();
		return menuSlideAllowed(dx);
	} 
 
	private boolean menuSlideAllowed(float dx) {
		if(dx > 0){