How to disable the bounce effect (blue shade when scroll to end) of webview in android?
android, android-layout, webview
Solution
I believe this will work:
mWebView.setOverScrollMode(View.OVER_SCROLL_NEVER);
Problem
I found the webview is similar to scroll view , that means when I scroll the view to the end, there will be a blue shade at the end of the view (if it is >4.0) . So, how to disable the behavior of this? How to disable the bounce effect? Thanks. ``` mWebView.setWebViewClient(new MyWebViewClient(getActivity())); chromeCilent = new MyWebChromeClient(getActivity()); mWebView.setWebChromeClient(chromeCilent); mWebView.getSettings().setDomStorageEnabled(true); mWebView.getSettings().setPluginState(WebSettings.PluginState.ON); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setLoadsImagesAutomatically(true); mWebView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH); mWebView.getSettings().setSupportZoom(false); mWebView.getSettings().setSavePassword(false); mWebView.getSettings().setBlockNetworkImage(false); mWebView.getSettings().setSupportMultipleWindows(false); mWebView.getSettings().setAppCacheEnabled(true); mWebView.addJavascriptInterface(this, "jsinterface"); // default go to video page mWebView.loadUrl(url); ```