~/talk

Shooting a “Glance” at App Widgets

Talkat droidcon Berlin 2022 · 2022-07-06..07-08· [android, component-design]
speakerdeck:fgiris
slides:none on file

Covers the Glance library that converts its own composables into RemoteViews and wear tiles, clarifies that Glance composables are distinct from Compose UI, and shows concrete behavior: four actions (start activity, broadcast, service, runCallback), state stored with DataStore via local/currentState and updateAppWidgetState, a click-counter demo that passes an increment through action parameters and updates the widget, three sizing strategies including three size modes (single, exact, responsive), dynamic colors on Android 12+/API 31 with resource fallbacks, and compatibility down to API 23 while still alpha.

AI-written summary · about

  1. 0:00Introduction to app widgets
  2. 1:30What is Glance library
  3. 3:59Creating first Glance widget
  4. 7:07Adding actions to widgets
  5. 8:53Managing widget state
  6. 14:11Handling widget sizing
  7. 19:30Theming Glance widgets
  8. 22:59Summary and key takeaways
~/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.