M
M
mix-92019-02-23 17:21:35
Android
mix-9, 2019-02-23 17:21:35

How to make a list with data loaded when scrolling?

Good day.
I found a lot of information on this issue, so I got confused. My version turned out like this: 1) RecyclerView doesn't care about the size of the list, that's why it's "standard", it's just that new entries are added to the adapter; 2) in the currentCategory adapter has a position, if position == the size of the current list, I make a new request
Now the questions are:
1) are my reasoning correct or is there some big problem that can be solved by answering question
2 2) how to do it right?
If it is important, I get the data through the callback of my class, which, in turn, receives either from the Internet or from the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2019-02-23
@mix-9

That's right. As soon as you scroll to the end of the list, make a new request. And it would be nice to display progress to the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question