CoinAnalyzer
CoinAnalyzer

Reputation: 56

Android Webview Scroll After Color

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.

enter image description here

Upvotes: 0

Views: 441

Answers (1)

snachmsm
snachmsm

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

Related Questions