compose-samples

Official Jetpack Compose samples.

Github星跟踪图

Jetpack Compose Samples

This repository contains a set of individual Android Studio projects to help you learn about
Compose in Android. Each sample demonstrates different use cases, complexity levels and APIs.

For more information, please read the documentation

💻 Requirements

To try out these sample apps, you need to use the latest Canary version of Android Studio 4.2.
You can clone this repository or import the
project from Android Studio following the steps
here.

🧬 Samples
------------, Project, :-----, ---------, A sample blog post viewer that demonstrates the use of Compose with a typical Material app and real-world architecture. • Medium complexity• Varied UI• Light & dark themes• Resource loading• UI Testing > Browse, , A sample chat app that focuses on UI state patterns and text input.• Low complexity• Simple Material Design theme (Light & dark)• Resource loading• Back button handling• Integration with Architecture Components: Navigation, Fragments, LiveData, ViewModel• Animation• UI Testing> Browse , , A sample survey app that showcases text input, validation and UI state management in Compose.• Low complexityTextField and form validation• Snackbar implementation• Element reusability and styling• Various form elements> Browse , , Jetsnack is a sample snack ordering app built with Compose.• Medium complexity• Custom design system• Custom layouts• Animation> Browse , , A sample podcast app that features a full-featured, Redux-style architecture and showcases dynamic themes.• Advanced sample• Dynamic theming using podcast artwork• Image fetchingWindowInsets support• Coroutines• Local storage with Room> Browse , , A Compose implementation of the Rally Material study, a financial app that focuses on data, charts, reusability and animations.• Low complexity• Material theming with a dark-only theme• Custom layouts and reusable elements• Charts and tables• Animations• Screenshot tests> Browse , , A Compose implementation of the Crane Material study, a travel app that uses Material Design components and Material Theming to create a personalized, on-brand experience.• Medium complexity• Draggable UI elements• Android Views inside Compose• UI state handling• UI Tests> Browse , , A Compose implementation of the Owl Material study. The Owl brand uses bold color, shape, and typography to express its brand attributes: energy, daring, and fun.• Medium complexity• Material theming & light/dark themes• Custom layout• Animation> Browse , , 🧬 Compose in existing app samples

To see how Compose and view-based UIs can coexist and interact together, check out these samples:

License

Copyright 2020 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

主要指标

概览
名称与所有者android/compose-samples
主编程语言Kotlin
编程语言Kotlin (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2019-09-27 09:51:19
推送于2025-05-28 06:10:44
最后一次提交2025-02-20 09:41:36
发布数59
最新版本名称v2025.05.00 (发布于 )
第一版名称dev05 (发布于 2020-03-11 11:01:32)
用户参与
星数21.6k
关注者数430
派生数5.1k
提交数3.2k
已启用问题?
问题数418
打开的问题数5
拉请求数865
打开的拉请求数6
关闭的拉请求数245
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?