10

Does anyone know if there is a way to override or replace the glow effect on listviews in Gingerbread. I've tried to set overscroll mode to OVER_SCROLL_NEVER. But then you will get a "very ugly" rubber band effect where you bounce back from the end of the list.

Does anyone have a suggestion?

Thx!

Kevin
  • 1,745
  • 13
  • 16
  • 1
    Hey Kevin, Were you able to find the solution? I went through android's AbsListView.java file and the variables mEdgeGlowTop and mEdgeGlowBottom are private. So, there is no way to nullify their effect. However, when I use OVER_SCROLL_NEVER, I get the same bouncing effect. – Mohit Mar 15 '11 at 01:41
  • No sorry didn't find the answer. – Kevin Aug 18 '11 at 14:26
  • hey Kevin i have face same issue . have u got any solution? – Parag Chauhan Apr 16 '12 at 18:57
  • Duplicate of [How can I change the OverScroll color in Android 2.3.1?](http://stackoverflow.com/questions/5897909/how-can-i-change-the-overscroll-color-in-android-2-3-1) – blahdiblah Jun 25 '14 at 22:57

2 Answers2

2

See solution here: How can I change the OverScroll color in Android 2.3.1?

Community
  • 1
  • 1
Graeme
  • 25,714
  • 24
  • 124
  • 186
-1

setOverscrollFooter() and setOverscrollHeader() are presumably what you want. Have yet to use them myself...

Reuben Scratton
  • 38,595
  • 9
  • 77
  • 86
  • Tried that already and it doesn't work. Thanks for your suggestion though – Kevin Mar 03 '11 at 12:36
  • What does "it doesn't work" mean? It should obviously do something... what sort of drawable are you giving it? – Reuben Scratton Mar 03 '11 at 12:38
  • overscrollFooter and Header are displayed perhaps a pixel or so high on the odd occasion that the listview truly overscrolls (I think it's part of the optimisations on list scroll rendering) - it isn't the same thing as the overscroll functionality to show a glow at each end of the list view. – Graeme Aug 03 '11 at 12:40