Building Glanceables with Compose
summary
Explains how Glance lets Compose-style composables become real widgets by translating to platform views and Tiles and shows a working weather widget that refreshes every 30 minutes using WorkManager. Demonstrates state persisted to disk with DataStore + protobuf state definitions and shows update calls that write shared state for all widget instances. Covers size handling with responsive size mode with three presets and details color theming via launcher-resolved dynamic color resource IDs.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:52What is a glancible
- 3:20Glance vs Jetpack Compose
- 5:08Why create Glance
- 6:56Building widgets with Glance
- 8:24Weather widget demo
- 14:08Managing state in Glance
- 19:25Lifecycle and updates
- 24:04Scheduling updates
- 27:20Handling widget sizes
- 33:43Dynamic colors in widgets
- 36:32Summary and resources
related talks
27mTake a look at Jetpack Glance
27mTake a look at Jetpack Glance
39mAndroid widgets and Jetpack Compose: Making your app fancy
37mShooting a “Glance” at App Widgets and Wear Tiles
18mCompose: Implementing responsive UI for larger screens
31mDesigning Media Friendly Jetpack Compose Components
42mCompose: Beyond Android development
01h 11mCodelab: Jetpack Compose Basics
