Created
November 18, 2016 07:42
-
-
Save Ray33/046c015d2abf6ac96a7eae8bb7b890df to your computer and use it in GitHub Desktop.
Some webview settings to load web pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void initWebView() { | |
mWebView.setWebViewClient(new WebViewClientImpl()); | |
mWebView.setWebChromeClient(new WebChromeClient()); | |
mWebView.getSettings().setUseWideViewPort(true); | |
mWebView.getSettings().setLoadWithOverviewMode(true); | |
mWebView.getSettings().setSupportZoom(true); | |
mWebView.getSettings().setBuiltInZoomControls(true); | |
mWebView.loadUrl(mUrl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment