32.6 C
Kuching
Wednesday, June 19, 2019
Utama Penulis Posts by Ravindran Raman Kutty

Ravindran Raman Kutty

1 POSTS 0 COMMENTS
WebView mWebView = new WebView(this); WebSettings settings = mWebView.getSettings(); settings.setJavaScriptEnabled(true); settings.setLoadWithOverviewMode(true); settings.setUseWideViewPort(true); settings.setSupportZoom(true); settings.setBuiltInZoomControls(false); settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN); settings.setCacheMode(WebSettings.LOAD_NO_CACHE); settings.setDomStorageEnabled(true); mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); mWebView.setScrollbarFadingEnabled(true); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { mWebView.setLayerType(View.LAYER_TYPE_HARDWARE, null); } else { mWebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); }