+ 3

How to display a large 2D dataset on Android ?

Hello 🙂 I have a 2D dataset (r rows and c columns). I already have used a "recyclerView" before, using a grid layout manager. However, it seems that when we set a column count too large (let's say 200 columns), the app is lagging, even if the visible part is only 6 by 6 tiles. So, I programmed something less "user-friendly" which consists of buttons to move around in a grid view. Is there a way to make the recyclerView as fast (or close) as a classic use, or a totally different way to display this ? (I want the user to be able to navigate without any buttons) Thanks in advance, have a great day ! 😊

15th Sep 2022, 9:40 AM
Arthur Le Floch
2 Respuestas
+ 1
Are you using Jetpack Compose or XML? If you're using Jetpack Compose, you can try using Lazy Column. Lazy Column is the replacement of RecyclerView. I am not sure if it's in XML though, I'm afraid. I generally only like working with JC.
20th Sep 2022, 11:00 AM
Justice
Justice - avatar
0
Oh I am not working with Jetpack Compose for the moment... But I'll check this
26th Sep 2022, 11:46 AM
Arthur Le Floch