1

I'm using a listView that gets notifyDataSetChanged() called every few seconds and if user is scrolling down, he's automatically scrolled to top.

What could be the reason? I've not used any .setSelection(0), or other methods that force scrolling. What could I be doing wrong?

Taranfx
  • 10,103
  • 13
  • 74
  • 95
  • did you ever figure this one out? – Koppo Aug 16 '11 at 21:50
  • nope! I thought there must be some notifyDataSetChanged, but that wasn't the case. – Taranfx Aug 18 '11 at 17:28
  • 1
    The answer is here: just try it out http://vikinghammer.com/2011/06/17/android-listview-maintain-your-scroll-position-when-you-refresh/ –  Nov 12 '12 at 15:54

1 Answers1

0

Used CursorAdapter to populate listview, problem went away.

Taranfx
  • 10,103
  • 13
  • 74
  • 95