Code example for ZoomButtonsController

Methods: setVisible

	 * {@link OnGestureListener} 
	public boolean onDown(MotionEvent e) {
		return true; 
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		final float velocityFactor = 1.5f;
		int minX = (int) (getWidth() - contentWidth);
		int minY = (int) (getHeight() - contentHeight);
		scroller.fling((int) currentX, (int) currentY,
				(int) (velocityX / velocityFactor),
				(int) (velocityY / velocityFactor), minX, 0, minY, 0);
		return true; 
Connect your IDE to all the code out there  Get Codota for Java