0

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

7
  • check out my question in HERE, you will find in there some clues (especially ScrollingViewBehavior) Commented Aug 2, 2021 at 9:58
  • @snachmsm I don't know much. Is it that hard to destroy it? Commented Aug 2, 2021 at 10:05
  • what do you mean by "that hard to destroy it"? Commented Aug 2, 2021 at 10:19
  • @snachmsm When you scroll up, down or left and right in the application, things like the balloon in the picture appear. I don't want them to come off. Also, how can I disable swiping left and right? Commented Aug 2, 2021 at 10:24
  • you are talking about Toolbar or this gray curved shape, so-called overscroll effect, which can be disabled easily with line webView.setOverScrollMode(View.OVER_SCROLL_NEVER);? Commented Aug 2, 2021 at 10:27

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.