Hello, Is it possible to create a table which is ...
# compose-android
r
Hello, Is it possible to create a table which is scrollable on both directions: horizontally and vertically? Also, the table has columns of variable width. I've seen that there is a LazyVerticalGrid and LazyHorizontalGrid, which allows scrolling in one direction only. If, a vertical grid is in a horizontal scroll container, the app crashes with an error, stating that the parent has to be bounded, fixed size I guess.
s
c
There's also https://github.com/oleksandrbalan/lazytable which is based on minabox.
r
Thank you for the suggestions. I've checked them. Even though it's exactly what I need, I think that it's kind of overkill to use 2 libraries (lazytable depends on MinaBox) for displaying a table. Would use it, if there's no other / lightweight way... I'm wondering why Compose doesn't support it by default? I know it's not recommended to have a both-way swipeable control, but still...
m
I think that it's kind of overkill to use 2 libraries (lazytable depends on MinaBox) for displaying a table
Had the author of these libraries combined the same code into a single library, how would that materially improve anything about your app? That said, if you do not need Compose Multiplatform support, in addition to lazytable, see https://github.com/sunny-chung/composable-table.
r
I'll check it out, thanks!