Code example for ZoomButtonsController

Methods: getZoomControls, isVisible

0
		if (mZoomButtonsController == null) {
			mZoomButtonsController = new MyZoomButtonsController(this);
			// ZoomButtonsController positions the buttons at the bottom, but in 
			// the middle. Change their layout parameters so they appear on the 
			// right. 
			View controls = mZoomButtonsController.getZoomControls();
			ViewGroup.LayoutParams params = controls.getLayoutParams();
			if (params instanceof FrameLayout.LayoutParams) {
				FrameLayout.LayoutParams frameParams = (FrameLayout.LayoutParams) params;
				frameParams.gravity = Gravity.RIGHT;
			} 
		} 
		log.debug("MyWebView.getZoomButtonsController() mZoomButtonsController=" + mZoomButtonsController);
		log.debug("mZoomButtonsController.isVisible()=" + mZoomButtonsController.isVisible());
		return mZoomButtonsController;
	} 
 
//	@Override 
//	public boolean onTouchEvent(MotionEvent ev) { 
//		log.verbose("ev.getAction(): " + ev.getAction() + ", getScale(): " + getScale() + ", zoomIn(): " + zoomIn()); 
//