~/talk

Android widgets and Jetpack Compose: Making your app fancy

Talkat Android Worldwide October 2022 · on Tuesday, 2022-10-25· [android, web-platform]
slides:none on file

Shows how Android 12’s Jetpack Compose support for widgets uses the Glance framework but stops short of full Compose: many composables (Canvas, MaterialTheme, animations) are unsupported, so Glance provides its own modifiers and a limited set of layout primitives. Demonstrates a working calendar widget and a failing compose clock that is salvaged with a remote View bitmap fallback. Explains state sync via DataStore preferenceState, manual calls to updateAppWidgetState, and using WorkManager or AlarmManager for periodic updates.

AI-written summary · about

  1. 0:00Android widgets importance
  2. 1:49What is a widget
  3. 3:57Evolution before Android 12
  4. 6:28Old widget anatomy
  5. 10:32Traditional widget limits
  6. 12:39Jetpack Compose for widgets
  7. 14:34Glance framework widgets
  8. 17:29Glance unsupported features
  9. 19:43Glance data and state
  10. 21:51DataStore for updates
  11. 24:46Modern widget architecture
  12. 27:21Efficient update intervals
  13. 31:17Unsupported features and workarounds
  14. 33:03Widget future
  15. 34:31Q&A
~/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.