6

I need to totally disable overscroll in my listviews so I can implement my own overscroll functionality.

Seems to be simple enough when looking at the core listview classes, just by setting the overscroll mode to OVERSCROLL_NEVER. This doesn't do anything on my Samsung Galaxy s2. I have also tried to overwrite the overScrollBy function to do nothing. That doesn't work either.

Has anyone had much experience with samsung ListView customizations that can help me?

Jonathan S.
  • 1,540
  • 1
  • 15
  • 26

4 Answers4

1

Not my solution but check out https://gist.github.com/DHuckaby/3919939. Works for me. Stupid Samsung

Dori
  • 18,283
  • 17
  • 74
  • 116
1

Try this setOverScrollMode (int mode).. check this link out: http://developer.android.com/reference/android/widget/AbsListView.html#setOverScrollMode(int)

ShineDown
  • 1,881
  • 3
  • 21
  • 29
0

How about below code:

@Override
protected float getTopFadingEdgeStrength() {
    return 0.0f;
}

@Override
protected float getBottomFadingEdgeStrength() {
    return 0.0f;
}

Answer inspired from @cdhabecker Android ScrollView fading edge

Community
  • 1
  • 1
Jayshil Dave
  • 1,106
  • 10
  • 22
0

New RecyclerView can be used instead of ListView to tackle the problem.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Denis Gladkiy
  • 2,084
  • 1
  • 26
  • 40