Google releases Jetpack Glance Alpha for super-easy widget development

Jetpack Compose makes it possible to create interfaces for Android apps without dealing with lengthy XML files and other clunky resources. Instead, it allows developers to create interface elements in Kotlin code (alongside the rest of the app’s code), with simpler APIs and full Material Design support. Now Google is bringing that same ease of use to widgets, with the introduction of Jetpack Glance Alpha.
Google wrote in an announcement, “Android 12 revamps a key feature for many Android users, App Widgets, making them more useful, beautiful, and discoverable (84% use at least 1 widget). Today, we’re making it even easier to build them by releasing the first alpha of Jetpack Glance, a new framework built on top of the Jetpack Compose runtime designed to make it faster and easier to build app widgets for the home screen and other surfaces.”

Jetpack Glance structure (Credit: Google)

Jetpack Glance allows app developers to create widgets with similar declarative Kotlin-based APIs as …

Written By: Corbin Davenport

Original Article:

Leave a Comment