The Wayback Machine - http://web.archive.org/web/20201019184557/https://github.com/android/compose-samples
Skip to content
main
Go to file
Code

Latest commit

* [Jetcaster] Update to SNAPSHOT 6891475 (#216)

* Update Jetcaster to SNAPSHOT 6891475
* Fix episode title being centered

* [Crane] Update to SNAPSHOT 6891475 (#217)

* [Jetchat] Update to SNAPSHOT 6891475

Change-Id: I4a9e194aabce890638da09a632de33928ad5237f

* Spotless

Change-Id: Ic46c8dcfd12451ff3988a1127ac97062b0b440fb

* [Rally] Update to SNAPSHOT 6891475

Change-Id: I3252cfe051737927d76cc8559d24bf516a720d3c

* [Jetsurvey] Bump to alpha05

* [Jetsurvey] Using onSizeChanged to set the branding height

* [Jetsurvey] Bump to alpha05

* [Jetsurvey] Using onSizeChanged to set the branding height

* [Rally] Removes maven central snapshot repo

Change-Id: I473f1f55b40e4c81fc655568828db3ab94fea0a6

* [Jetchat] Removes maven central snapshot repo

Change-Id: I5b16871c3ef1a612da8b6f1d96309f2bc40c19d3

* [Jetsnack] Update to snapshot 6901934.

Change-Id: I1d6a951b9cba9994241315348daedaac1b5f278c

* [Jetsnack] Remove unused import.

Change-Id: Ieacdb2dc7253fe25977c123ee3d140b7bdb81f0d

* [Owl] Accept modifiers in search suggestion items.

Change-Id: I9a5bf25e5bfa4632738e1e03539039a9959a03f0

* [Owl] Update to snapshot 6901934.

Change-Id: I15c92c5252e61b8918bbb9c80cbdc679e3809555

* Bump JetNews to alpha05 (#221)

Changes:
- Use new produceState API in launchUiStateProducer
- Rename launchUiStateProducer to produceUiState to match naming
- Change launchInComposition to new API LaunchedTask
- Replace Box/Surface with new Box import
- Update modifiers for Text composable to work with new layout rules
- Update to use new AmbientContentColor and AmbientEmphasisLevels

Bugfix:
- Fix size of error case in [HomeScreenErrorAndContent], avoiding
  the swipe to refresh drawing in the incorrect place.

* [Readme] Removes known issues (#222)

* [All] Updates to alpha05 (#227)

* [All] Updates to 6901934 snapshot

* [All] Updates to alpha05

Co-authored-by: Chris Banes <chrisbanes@users.noreply.github.com>
Co-authored-by: Jose Alcerreca <jalc@google.com>
Co-authored-by: Florina Muntenescu <florinam@google.com>
Co-authored-by: Florina Muntenescu <2998890+florina-muntenescu@users.noreply.github.com>
Co-authored-by: Jose Alcérreca <JoseAlcerreca@users.noreply.github.com>
Co-authored-by: Nick Butcher <nickbutcher@google.com>
Co-authored-by: Nick Butcher <nickbutcher@users.noreply.github.com>
Co-authored-by: Sean McQuillan <seanmcq@google.com>
7da64ff

Git stats

Files

Permalink
Failed to load latest commit information.

README.md

Jetpack Compose Samples

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

JetNews

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

Jetnews sample demo

Jetchat

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

Jetchat sample demo

Jetsurvey

A sample survey app that showcases text input, validation and UI state management in Compose.

• Low complexity
TextField and form validation
• Snackbar implementation
• Element reusability and styling
• Various form elements


> Browse

Jetsurvey sample demo

Jetsnack

Jetsnack is a sample snack ordering app built with Compose.

• Medium complexity
• Custom design system
• Custom layouts
• Animation

> Browse

Jetsnack sample demo

Jetcaster

A sample podcast app that features a full-featured, Redux-style architecture and showcases dynamic themes.

• Advanced sample
• Dynamic theming using podcast artwork
• Image fetching
WindowInsets support
• Coroutines
• Local storage with Room

> Browse

Jetcaster sample demo

Rally

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

Rally sample demo

Crane

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

Crane sample demo

Owl

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

Owl sample demo

🧬 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.
You can’t perform that action at this time.