Code example for WebView

Methods: getScale, canZoomOut, zoomOut

0
		}); 
		zoomBar.findViewById(R.id.zoom_out).setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View v) {
				browser.zoomOut() ;
				boolean canZoomOut = browser.canZoomOut();
				float scale = browser.getScale() ;
				 
				Toast.makeText(getApplicationContext(), "canZoomOut "+canZoomOut +" scale "+scale, 0).show();
				 
			} 
		}); 
		browser.getSettings().setJavaScriptEnabled(true);
		//browser.canZoomIn(); 
		//browser.capturePicture(); 
		browser.addJavascriptInterface(new JavaScriptInterface(), "news");
		 
		WebSettings webSettings = browser.getSettings();
		webSettings.setBuiltInZoomControls(true);