Insets: Compose edition
summary
Starts from concrete steps: call WindowCompat.setDecorFitsSystemWindows(false) and set windowSoftInputMode to adjustResize, make bars transparent, then use Compose's windowInsetsPadding and IME-specific modifiers (including imeNestedScroll) to consume status/navigation/IME insets, get snapshot-backed inset values, and enjoy automatic animated recomposition. Material3 components expose configurable inset handling and a Now in Android sample shows the edge-to-edge layout and keyboard animations working as described.
AI-written summary · about
chapters (8)
- 0:00Introduction to insets
- 0:26Understanding inset basics
- 1:42Setting up the app window
- 2:16Using inset modifiers
- 2:59Managing nested insets
- 4:24Keyboard and scroll support
- 5:06Material 3 support
- 5:42Conclusion and resources
related talks
07mInsets: Compose edition
33mUnderstanding WindowInsets
38mCutting-Edge-to-Edge in Android 15
28mBecoming a master window fitter�
21mPractical edge-to-edge: A Complete Walkthrough
44mAndroid Insets and Keyboard Animation
26mMaking Apps adaptive with Material and Compose
18mCompose: Implementing responsive UI for larger screens
