Code example for WebView

Methods: getSettingsrestoreStatesetWebViewClient, setHorizontalScrollBarEnabled

0
		return view;
	} 
		 
	@SuppressLint("SetJavaScriptEnabled") 
	public WebView createWebView(Bundle savedInstanceState) {
		WebView webView = new WebView(getActivity()) {
			@Override 
			public boolean onCheckIsTextEditor() { 
				return true; 
			} 
		}; 
		 
    //webView.setVerticalScrollBarEnabled(false); 
    webView.setHorizontalScrollBarEnabled(false);
    webView.setWebViewClient(new DialogWebViewClient());
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setSavePassword(false);
     
    if (savedInstanceState != null)
    	webView.restoreState(savedInstanceState);
     
    // FIX on screen keyboard issue 
    /*webView.requestFocus(View.FOCUS_DOWN); 
    webView.setOnTouchListener(new View.OnTouchListener() { 
        @Override