+ 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 ! đ
2 RĂ©ponses
+ 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.
0
Oh I am not working with Jetpack Compose for the moment... But I'll check this