Code example for TableLayout.LayoutParams

0
		window.requestFeature(Window.FEATURE_NO_TITLE);
		window.setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN, WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
		 
		// Add the WebView and set layout 
		webView = new WebView(this);
		webView.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
		 
		// Remove native scroll bars 
		webView.setVerticalScrollBarEnabled(false);
		webView.setHorizontalScrollBarEnabled(false);
		 
		// Configure WebView settings 
		WebSettings webSettings = webView.getSettings();
		webSettings.setSavePassword(false);
		webSettings.setSaveFormData(false);
		webSettings.setSupportZoom(false);
		webSettings.setBuiltInZoomControls(false);
		// Enable geolocation 
		// TODO: since we're doing this in Java, should this be false? 
		webSettings.setGeolocationEnabled(true);