Skip to main content

Google is gradually rewriting Android’s Settings app with Jetpack Compose

As part of Android 14, it seems Google is gradually rebuilding parts of the Settings app using its more modern Jetpack Compose library instead of traditional Android Views.

Back in 2019, Google unveiled Jetpack Compose as a more modern way to make native Android apps, using Kotlin. Instead of using Android’s usual XML-based Views to imperatively design app UI, Jetpack Compose lets developers create designs declaratively, using the same Kotlin as the main app logic.

Since then, Google has prominently encouraged developers to try Jetpack Compose in their apps, whether by converting an app one section at a time or starting fresh with a new Compose project. In fact, just last year, the company said that Jetpack Compose was its “recommended approach for building UIs for Wear OS apps.” To that end, Google has put action behind its words, rebuilding some of its own apps to use Jetpack Compose — most notably the Play Store.

With the release of the first Android 14 Developer Preview, our team has uncovered an effort (codenamed “Spa”) to rewrite some (or perhaps all?) of Android’s Settings app in Jetpack Compose. A few portions of the app have already been rewritten in Compose, with Google seemingly tackling the potentially massive project one page at a time.

Specifically, the Android team has so far rewritten pages related to apps, notifications, and language preferences. There’s also a rebuilt home page for the Settings app, which currently only shows the parts of the app that have been rewritten in Compose.

If you have the Android 14 Developer Preview on your device and want to try some of the rebuilt portions of the Settings app for yourself, it’s easy to do so with a single ADB command.

adb shell settings put global settings_enable_spa true

Just know that this is very much a work in progress and things may not work the way you expect. To switch things back, you can use this ADB command.

adb shell settings delete global settings_enable_spa

Once enabled, a handful of individual pages in the Android 14 Settings app are automatically swapped over to their Compose counterparts. Most of the time, though, you likely won’t notice that anything has changed. The easiest way to check is to tap a three-dots button to see if the dropdown menu has changed or if the color palette is slightly different, as shown below.

Views vs Compose

Since much of Android is open source, it shouldn’t be long before we can see the actual source code showing how Google is going about this transition from Views to Jetpack Compose. Beyond that, it should offer developers a chance to see Google’s own practices for using Jetpack Compose and Kotlin.

Dylan Roussel contributed to this article.

More on Android:

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Kyle Bradshaw Kyle Bradshaw

Kyle is an author and researcher for 9to5Google, with special interests in Made by Google products, Fuchsia, and uncovering new features.

Got a tip or want to chat? Twitter or Email. Kyle@9to5mac.com

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications