Why refresh the data when RecyclerView slides into the middle
See original GitHub issue mDatas.clear(); mDatas.addAll(photoList); mController.setData(mDatas);
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Refreshing data in RecyclerView and keeping its scroll position
RecyclerView always holds the last position scrolled, therefore you don't have to store last position, just call notifydatasetchanged, recycler view always ...
Read more >Update recycler view content without refreshing the data.
Sometimes we need to update the content of the RecyclerView cells, the ViewHolders, but we don't want to add more information to our...
Read more >Pull to Refresh with RecyclerView in Android with Example
Whenever onRefresh() method is called the ArrayList data gets rearranged. A sample GIF is given below to get an idea about what we...
Read more >RecyclerView.Adapter - Android Developers
Called by RecyclerView to display the data at the specified position. This method should update the contents of the itemView to reflect the...
Read more >Intermediate RecyclerView Tutorial with Kotlin
That method will allow animations to occur for the rows around the deleted row because it tells RecyclerView exactly how the data in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the answer.Because i do not need animation,so add code:
Solved my question! 👍
I had same issue on
2.16.3
Above codes not working on me.
But I resolve issue with this code: