I made a web view app with navigation drawer and it is working fine but the only problem is the settings option in the right corner... Can I edit or remove it??
please check the pics : https://ibb.co/mVqbRR https://ibb.co/n8d7Y6
I made a web view app with navigation drawer and it is working fine but the only problem is the settings option in the right corner... Can I edit or remove it??
please check the pics : https://ibb.co/mVqbRR https://ibb.co/n8d7Y6
In your MainActivity you will have optionmenu
, just make it false
@Override
public boolean onCreateOptionsMenu(Menu menu) {
return false;
}
I hope this will solve your problem..
overflow menu
.
Oct 27, 2017 at 7:33
Try in this way. This code works fine for me
myWebView = (WebView) view.findViewById(R.id.webview);
myWebView.clearCache(true);
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.getSettings().setUseWideViewPort(true);
myWebView.getSettings().setLoadWithOverviewMode(true);
myWebView.getSettings().setAllowContentAccess(true);
myWebView.getSettings().setDomStorageEnabled(true);
myWebView.clearCache(true);
myWebView.clearHistory();
myWebView.setWebChromeClient(new WebChromeClient());
myWebView.setWebViewClient(new ProgressWeb(getActivity()));
myWebView.loadUrl("http://google.com");