Code example for ZoomButtonsController

Methods: setVisible

0
	/* 
	 * {@link OnGestureListener} 
	 */ 
	@Override 
	public boolean onDown(MotionEvent e) {
		zoomController.setVisible(false);
		return true; 
	} 
 
	@Override 
	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; 
	}