2025-03-07

Compose Navigation for Foldables

By Kenji Morita

Whiteboard covered in API sequence diagrams

Foldables invite duplicate navigation graphs if teams panic. We start from a single source of truth with slot-based layouts, then layer window size classes. The Kotlin & Jetpack Compose Essentials track extends these ideas with mentor reviews on state duplication.

Participants sketch route matrices before writing code. That slows day one but prevents refactors when marketing asks for a new promo screen mid-cohort.

We also compare testing strategies: some teams prefer screenshot tests per posture, others lean on interaction tests. We do not mandate one winner; we require evidence for whichever path they pick.

Tags: Android, Compose, Navigation