Hmm, you probably mean lists shouldn’t be creating new objects (/allocating new memory) while just scrolling.
Which, yeah, I remember a colleague knowledgeable about Android saying that a RecyclerView specifically re-uses allocated list elements.
And from the little bit of Android dev I saw, it also looked like all the APIs are designed to stop you from doing(/allocating) much while the user is merely scrolling. Then, I’m not sure what’s causing the lag…
Yep, that's the case. Who knows what's causing lags. It still can be a poorly implemented list, it could be OS doing something else it could be something else. It would be interesting testing same app on different devices.
Ephera@lemmy.ml 8 months ago
Hmm, you probably mean lists shouldn’t be creating new objects (/allocating new memory) while just scrolling.
Which, yeah, I remember a colleague knowledgeable about Android saying that a
RecyclerView
specifically re-uses allocated list elements.And from the little bit of Android dev I saw, it also looked like all the APIs are designed to stop you from doing(/allocating) much while the user is merely scrolling. Then, I’m not sure what’s causing the lag…
mihies@kbin.social 8 months ago
Yep, that's the case. Who knows what's causing lags. It still can be a poorly implemented list, it could be OS doing something else it could be something else. It would be interesting testing same app on different devices.