I use paging component v3, more specifically remote mediator, where I add a new item to the list and the recycler-view doesn't show the item, I have to scroll down the list to see the item. Is there a way to update the view? I use pagination with internet and database
Asked
Active
Viewed 358 times
0
-
recyclerView.scrollToPosition(adapter.getItemCount() - 1); You can fire it with a callback after inserting a new item into the adapter. – Mohammad Reza Khahani Jan 25 '22 at 21:16
-
take a look at [this answer](https://stackoverflow.com/a/63374478/6751083) – Mohammad Reza Khahani Jan 25 '22 at 21:17
-
Thank you, I was able to solve my doubt. – Emi Baez Jan 27 '22 at 12:46