Enhance your single screen designed-app to make it shine on foldable devices
summary
Walks through converting a single-screen list/detail app to use Jetpack WindowManager plus SlidingPaneLayout and NavigationRail, replacing a fragment container with a 280dp left pane so both panes show on larger screens; emulators (Surface Duo with 66px hinge and an older 1px hinge) show the layout compensates for the hinge automatically. Adds coroutine-based WindowInfoRepository handling, a back-press pane closer, and instrumentation tests that mock a folding feature — tests run and pass.
AI-written summary · about
chapters (6)
- 0:00Introduction to foldable devices
- 6:04Enhancing single screen apps
- 14:11Adding sliding pane layout
- 29:34Transforming to navigation rail
- 1:01:06Testing with window manager
- 1:19:37Summary and resources
related talks
39mFinding Success on Large Screens and Foldables
37mBuilding Responsive UIs for tablets, foldables, and other devices
21mBuilding an adaptive layout with SlidingPaneLayout
29mFoldable, Meet Compose
47mThe age of large screen & foldables
01h 01mComposing large screens
42mLarge screens and foldables
19mEnhancing my app for foldables
