Code example for WebView

Methods: getSettingssetLayoutParamssetWebViewClient, setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled

0
		 
		NMEWebView.HaxeListenerClass = _haxeListenerClass;
		 
		View view;
		 
		WebView webView = new WebView(GameActivity.getContext());
		webView.setVerticalScrollBarEnabled(false);
        webView.setHorizontalScrollBarEnabled(false);
		webView.setWebViewClient(new WebViewClient() {
			@Override 
			public boolean shouldOverrideUrlLoading(WebView view, String url) {
				NMEWebView.HaxeListenerClass.call1("onURLChanging", url);
				view.loadUrl(url);
				 
				return true; 
			} 
		}); 
		 
		WebSettings webSettings = webView.getSettings();
		webSettings.setSavePassword(false);
		webSettings.setSaveFormData(false);
		webSettings.setJavaScriptEnabled(true);
		webSettings.setSupportZoom(false);
		 
		NMEWebView.webView = webView;
		NMEWebView.view = NMEWebView.webView;
		 
		if(withPopup) {
			webView.setLayoutParams(new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
			 
			ImageView closeImageView = new ImageView(GameActivity.getContext());
			closeImageView.setOnClickListener(new View.OnClickListener() {
				@Override 
				public void onClick(View v) {