How to remove this shadow that appears when it reaches the "end" of the screen?

Asked

Viewed 98 times

3

inserir a descrição da imagem aqui

How do you remove this shadow using Android Studio? It appears when you finish scrolling the page.

1 answer

7


In xml, in the View statement, add android:overScrollMode="never".

The same can be done in java using:

myView.setOverScrollMode(View.OVER_SCROLL_NEVER);

There are 3 modes:

  • OVER_SCROLL_ALWAYS
    standard mode, the effect is always visible.
  • OVER_SCROL_IF_CONTENT_SCROLS
    the effect is only visible when the view content is larger than the view’s dimensions.
  • OVER_SCROLL_NEVER
    the effect is never visible.

Note: THE scroll mode is only applicable to views capable of displaying the content.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.