Reputation: 10349
We know that, when we scroll a listview at bottom or top of the list, we will see gradient color of yellow and black. Same thing will happen for ScrollView and HorizontalScrollView also at the edges. I want to disable the color when user scrolling these views.
is it possible to disable that color as we disable scrollbars with property
android:scrollbars="none"
If anybody know the solution please help me.
Upvotes: 2
Views: 3169
Reputation: 1224
The yellow-black gradient color is actually appears when you over scroll the scroll views.
It can be eliminated by using below code in XML file of ScrollView or HorizontalScrollView
android:overScrollMode="never"
It will work for android 2.3 and above. I don't for below API levels.
Upvotes: 7