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)
Ernestas
09/20/2021, 5:55 PM
c
Chris Sinco [G]
09/20/2021, 6:47 PM
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
Chris Sinco [G]
09/20/2021, 6:49 PM
I think you’ll learn A LOT about the layout system in Compose by hacking away at this
e
Ernestas
09/21/2021, 6:56 AM
Yeah I figured I’ll probably have to spend some time playing with the layouts, thanks
c
Chris Sinco [G]
09/21/2021, 4:03 PM
ConstraintLayout is available in Compose also, so feel free to use all of them in concert for your needs
Chris Sinco [G]
09/21/2021, 4:04 PM
The difference with Compose and ConstraintLayout is you don’t need to strictly use CL for perf reasons, nor keep your hierarchy very flat