Yugandhar Babu
Yugandhar Babu

Reputation: 10349

disabling the Yellow-Black gradient color on scrolling at the ends of listview, scrollview, horizontal scroll view

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

Answers (2)

Deepthi Jabili
Deepthi Jabili

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

Jin35
Jin35

Reputation: 8612

Use android:fadingEdge="none" in <ListView>

Upvotes: 4

Related Questions