-1

Is there a way to not let this happen? It's quite ugly aesthetically.

Maurice
  • 6,413
  • 13
  • 51
  • 76

3 Answers3

1

That's not a bug. That's a feature!

If you want to disable it, try calling:

listView.setOverScrollMode(View.OVER_SCROLL_NEVER);

Unfortunately, it apparently doesn't work on all devices. (See, for example, here.)

Community
  • 1
  • 1
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
0

Add one of these attributes to your list view in your layout file.

<ListView 
  android:overScrollHeader="@null" 
  android:overScrollFooter="@null" />

or

<ListView android:overScrollMode="never" />
bkaramik
  • 88
  • 7
-1

Force setting a background color to the list item solves the highlighting issue.

Maurice
  • 6,413
  • 13
  • 51
  • 76