Code example for ZoomButtonsController

Methods: setVisible

0
		return true; 
	} 
 
	@Override 
	public void onLongPress(MotionEvent e) {
		zoomController.setVisible(true);
	} 
 
	@Override 
	public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX,
			float distanceY) {
 
		currentX -= distanceX / scale;
		currentY -= distanceY / scale;
 
		currentX = Math.max(getWidth() - contentWidth, Math.min(0, currentX));
		currentY = Math.max(getHeight() - contentHeight, Math.min(0, currentY));
 
		// notifyOnScroll(); 
 
		invalidate();