Google's powerful Android UI toolkit dominates Github, here's a guide to getting started

Google's powerful Android UI toolkit dominates Github, here's a guide to getting started

In 2019, Google publicly released a non-bundled toolkit at the I/O conference - Jetpack Compose, a modern toolkit for building native Android UI. The layout can be completed with only a small amount of code, and it can be written directly in Kotlin.

The Jetpack Compose toolkit is built around composable functions. These functions allow you to define the UI of your app by describing the shape of your app and the data it depends on, without having to worry about the specific construction process of the UI.

Recently, there is a project on Github that has been at the top of the list for many days. This project contains a set of separate Android Studio projects that can help you better learn Compose.

Currently, compose-samples has 2.7K stars on Github and 400 branches (Github address: https://github.com/android/compose-samples)

If you want to try out these sample apps, use the latest Canary version of Android Studio 4.2. Let's take a look at the examples:

Jetnews

This is a blog post viewer of medium complexity

Jetchat

This is a sample chat application with simple complexity, simple theme design, UI testing, animations, etc.

Jetsurvey

This is a survey app that demonstrates text input, validation, and UI state management in Compose at a simple level of complexity.

Jetsnack

This is a snack ordering app built with Compose. It is of medium complexity, involving system design, layout customization, etc.

Jetcaster

This is a podcast app with a fully functional Redux-style architecture and showcases dynamic theming.

In addition to the above application examples, there are also special applications such as Crane (travel application), Rally (financial application), Owl, etc. If you are interested in Compose, you must check out this project.

<<:  iPhone 12's 5G will launch with two technologies, the latter of which may not be popular

>>:  Learn these 7 tips to draw perfect icons

Recommend

What? Can the verification code I fill in every day be used for charity?

CAPTCHA is a security mechanism widely used in we...

Let’s talk about how to customize the appearance of symbol images in SwiftUI

Preface Symbol images are vector icons from Apple...

How to formulate an operating strategy for a product?

When it comes to the work content of operations, ...

Toxic, harmful and disease-causing! Throw away these plastic bags at home

Our daily lives seem to be inseparable from plast...

Here are seven key points about APP message push

So, how to build a good APP message push mechanis...

User Operations | Analyzing Common Patterns of User Operations

In the Internet age, whoever wins the users wins ...

Teach you how to quickly find shortcuts for APP operation and promotion

The eight golden rules introduced in this article...

Microsoft's mobile version of Office is free: just to show its presence

Recently, Microsoft announced that its Office sui...

A complete analysis of social media methods for App operation and promotion!

In the era of mobile Internet, traffic is king. I...

5 tips and strategies to attract new users to your APP!

For every operator, the word "attracting new...