How to load the state of the list while loading the next portion of cells?
I use mRecyclerView.scrollToPosition (mRecyclerAdapter.getLastPos ()), and if I stay at the bottom of the list at the moment of uploading new cells, everything is ok, but if I scroll at the top, I’m throwing the list at the time of drawing at the very end of the list (that is, if I had 10 cells, I caused the next 10 to be loaded, and scrolled to the 5th, then at the time of the next 10, I’m throwing me to the 10th). If you do not use scrollToPosition, then at the time of drawing a trace. cell throws to the top of the list.
- And how do you insert into the list after loading? notifyDatasetChanged ()? - Sviat Volkov
- Yes, it is them. - Alexander Kuklev
- add code - Vitaly
|