Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

When starting a new Android Studio project, which templates are for Jetpack Compose, do the green vs purple ones have a meaning?

Now and then I try to teach myself some Android programming, but I don’t do Android regularly.

I’m currently on Android Studio Giraffe | 2022.3.1 Patch 1. When starting a new project, the New Project dialog currently looks like this:
New Project dialog for Android Studio Giraffe | 2022.3.1 Patch 1

How do I know which ones are templates for old-style Android projects from before Jetpack Compose, and which ones are for Jetpack Compose projects?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Do the purple ones mean one and the green ones mean the other?

Usually when I talk about old-style Android I use terms like "Views project" to contrast with "Jetpack Compose project". But I guess I’ve been using the term "Views" wrong, or the colours are not a differentiator, since there are both Green and Purple templates using the word "Views".

There’s nothing in the dialog itself. There’s no hover-text. I can’t right-click on the templates. A quick Google didn’t answer it. Maybe it’s hidden in plain sight. Maybe it’s totally arbitrary?

>Solution :

The first one is for Jetpack Compose Activity, it has Compose Logo. Rest all are XML based Views Activity.

Purple Color is for Material Design 3 whereas Green is for Material Design 2.

In Android Studio Dolphin, it was explicitly mentioned.

Screenshot from Android Studio Dolphin

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading