Reputation: 56
I am making an android webview application. However, when the user scrolls off the screen, I want the part I show in the picture not to appear.
How can I do that ? Thank you for your help.
Upvotes: 0
Views: 441
Reputation: 19243
for disabling overscroll effect just use
webView.setOverScrollMode(View.OVER_SCROLL_NEVER);
some doc in HERE. this is just some visual effect, which you can have or just disable like you want. it doesn't affecting any scrolling possibility
edit: worth adding that Android 12 changed this behavior, from "glow effect" to "stretch effect". still same way for configuring/disabling it as above
Upvotes: 2