Composing Creatively with Custom Layouts
summary
Argues that custom layouts in Jetpack Compose are often simpler and clearer than ConstraintLayout, using the layout composable and layout modifier with a measurePolicy that returns placeables; demonstrates a polar-offset modifier implemented in 11 lines of code that spins a ring of items, and describes building a production video editing timeline / scheduling timeline with custom measurement and placement (took a few weeks and worked), citing phase-state reads and measurables/placeables for performance and maintainability.
AI-written summary · about
chapters (9)
- 0:00Introduction and motivation
- 1:23Why custom layouts matter
- 10:03Custom layouts vs ConstraintLayout
- 14:56Why custom layouts in Compose are better
- 21:49Understanding Compose layout phases
- 26:01Implementing custom layouts
- 32:22Demo: Polar coordinates layout
- 34:29Demo: Video editing timeline
- 39:23Summary and call to action
related talks
42mCustom Layouts in Jetpack Compose
41mCreating a Custom Compose Layout, Step-By-Step
40mDigging Deeper with Subcomposition + Custom Compose Layouts
32mThinking outside the Box: Custom Compose layouts
38mUsing ConstraintLayout in Compose
45mConstraintLayout: making the transition to Compose
42mCreating a Custom Compose Layout, Step-by-Step
35mAdaptive Layouts in Compose
