lucasr / twoway-view

[DEPRECATED] RecyclerView made simple
5.23k stars 1.02k forks source link

Scroll moving when calling notifyDataSetChanged() #222

Open Dragonslair5 opened 9 years ago

Dragonslair5 commented 9 years ago

Im using TwoWayView to implement a Horizontal ListView. When i call notifyDataSetChanged() to my adapter, it redraws the views, and sometimes it also changes the position of the scroll. So, any clue about why the scroll sometimes changes position when notifyDataSetChanged() is called?

jagudo87 commented 9 years ago

I have the same problem, help please.

adenisonafifi commented 9 years ago

I am experiencing the scroll position changing as well. Does anyone have any input regarding this?

adenisonafifi commented 9 years ago

I was able to work around the scroll position changing by ensuring that setNextSelectedPositionInt(int position) is called when an item is selected via the OnItemClickListener.