~/talk

Let's Preview! Jetpack Compose

Talkat DroidKaigi 2021 · 2021-10-19..10-21· [android, design-collaboration]
name:mochico
links:none on file
slides:none on file

Practical guide to using Jetpack Compose previews to iterate UI without deploying, showing concrete steps: use Preview annotation and Android Studio Bumblebee to toggle device, locale, font scale, dark mode and color‑blind emulation; supply multiple cases with PreviewParameterProvider returning a Sequence of fake data; inject a fake ViewModel (interface + test double) to preview whole screens and reuse fakes in unit tests; notes version 1.0.3, interactive preview is experimental and preview data can accidentally be bundled into releases if not kept internal.

AI-written summary · about

  1. 0:00Introduction to Jetpack Compose
  2. 1:52Preview basics
  3. 3:56Passing preview data two ways
  4. 6:26Preview device states
  5. 9:17Preview features and improvements
  6. 10:44Full-screen preview with MVVM
  7. 13:17Practical preview with fake ViewModel
  8. 16:13Fake implementation and testing
  9. 17:15Summary and challenges
~/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.