Code example for WebSettings

Methods: setAllowFileAccess, setBuiltInZoomControls, setDefaultZoom, setJavaScriptEnabled, setLightTouchEnabled, setLoadWithOverviewMode, setPluginState, setRenderPriority, setSupportZoom, setUseWideViewPort

0
	 
	private void setBrowserAttribute() { 
		if (mWebSetting == null) {
			mWebSetting = mWebView.getSettings();
		} 
		mWebSetting.setPluginState(PluginState.ON);
		mWebSetting.setJavaScriptEnabled(true);
		mWebSetting.setSupportZoom(true);
		//mWebSetting.setJavaScriptCanOpenWindowsAutomatically(true); 
		mWebSetting.setAllowFileAccess(true);
		mWebSetting.setLightTouchEnabled(true);
		mWebSetting.setUserAgentString(USERAGENT);
		mWebSetting.setUseWideViewPort(true);
		mWebSetting.setDefaultZoom(ZoomDensity.MEDIUM);
		mWebSetting.setBuiltInZoomControls(true);
		 
		// make move slowly 
		//mWebSetting.setLayoutAlgorithm(LayoutAlgorithm.NORMAL); 
		mWebSetting.setLoadWithOverviewMode(true);
		mWebSetting.setRenderPriority(RenderPriority.HIGH);
		 
		 
		//mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); 
		//mWebView.setHorizontalScrollBarEnabled(false); 
		//mWebView.setHorizontalScrollbarOverlay(false);