~/talk

Insets: Compose edition

Talkat Android Dev Summit 2022: Form Factors · on Wednesday, 2022-11-09· [android]
github:alexvanyo
slides:none on file

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

  1. 0:00Introduction to insets
  2. 0:26Understanding inset basics
  3. 1:42Setting up the app window
  4. 2:16Using inset modifiers
  5. 2:59Managing nested insets
  6. 4:24Keyboard and scroll support
  7. 5:06Material 3 support
  8. 5:42Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.