Hi guys, I’ve just started experimenting with Comp...
# compose
e
Hi guys, I’ve just started experimenting with Compose. Any ideas how to go about implementing something like iOS calendar with Compose (the timeline on the left, and events constrained to specific times)? ConstraintLayout, custom view, something else? (picture in thread)
c
I don’t think there will be a clear way to do it. Compose was built to allow you to go wild with any crazy layout design you want, even with just combining the basic layout components of Box/Row/Column. Deeply nesting layouts is not an issue anymore, so really I’d suggest exploring with the basic components first: https://developer.android.com/jetpack/compose/layouts/basics
I think you’ll learn A LOT about the layout system in Compose by hacking away at this
e
Yeah I figured I’ll probably have to spend some time playing with the layouts, thanks
c
ConstraintLayout is available in Compose also, so feel free to use all of them in concert for your needs
The difference with Compose and ConstraintLayout is you don’t need to strictly use CL for perf reasons, nor keep your hierarchy very flat