When a view is scrollable like HorizontalScrollView or a TextView in an Android Intent, a gradient effect is seen at the end of scroll (depending upon the scroll, i.e. Scroll-Up, Scroll-Down, Scroll-Sideways Right or Left). This effect is called an Over Scroll Effect.

You can disable this effect by either adding code to a Layout XML file or Programmatically in Java Code :
Layout XML
Add the below attribute to your View tag.
android:overScrollMode="never"
Java Code (Programatically)
Add setOverscrollFooter(null) and setOverscrollHeader(null) on your view object.
view.setOverscrollFooter(null);
view.setOverscrollHeader(null);
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!