https://kotlinlang.org logo
#android
Title
# android
s

scottiedog45

05/09/2019, 4:05 PM
Beginning android dev questions: I’m looking to implement infinite scroll functionality. I was thinking of just adding a scroll listener to check the last visible item, and then fetching more data from the network if needed. Google searches have revealed that another option would be an architecture that includes the pagination library, with view models, and a repo? I guess it seems like a bit overkill so I was curious if other (more experienced) devs think it’s worth it to use the jetpack components for this.
google 2
stackoverflow 2
l

louiscad

05/09/2019, 4:32 PM
Paging Library is a great solution to that complex paging or long datasets loading and scroll problem, I totally recommend using it.
2 Views