Android demo widget implemented with Glance
Note
version androidx.glance:glance*:1.1.0 is used
- ✅ Stateful widget
- ✅ Handles user interaction
- ✅ Async operation on Worker
- ✅ Supports dark mode by Material3 color system
- ✅ Supports widget configuration (optional for Android 12 and above)
- ✅ Supports reconfiguration (only for Android 12 and above)
- ✅ Hilt with GlanceAppWidget and Worker
- ✅ Unit test for glance ui
- ✅ Can be added with in-app operation
Build app & widget
./gradlew app:assembleRelease
Run unit test
./gradlew widget:test
user interaction | dark mode |
---|---|
configuration when added | reconfiguration for existing |
---|---|
Can be added from in-app operation as well as from the home screen.
No configuration | With configuration |
---|---|
app
theme
common Material3 color and theme definition for Jetpack Compose and Glanceui
implementation with Jetpack Composewidget
implementation with Glancedomain
repository interface definitiondata
repository implementation