← All open source projects

Android Architecture Samples

android/architecture-samples

Android Architecture примеры is a set of TODO app examples with different Android architecture approaches, Jetpack Compose, ViewModel, Flow, coroutines, and Room.

Forks 11,861
Author android
Language Kotlin
License Apache-2.0
Synced 2026-06-27

What it is

Android Architecture примеры is a learning repository with Android application architecture examples. In different branches, the same TODO app is implemented with small differences.

The project is useful because architecture comparison happens on the same domain example rather than abstract diagrams.

The примеры’ main task is to show how to build an Android app with clear layers and modern tools.

What is inside the repository

The current branch describes Jetpack Compose UI, single-activity architecture, Navigation Compose, a ViewModel per screen or feature, reactive UIs with Flow and coroutines, and a data layer with a repository and two data sources.

The repository also contains screenshots, Why a to-do app?, What is it not?, Who is it for?, opening a sample in Android Studio, and license.

How people usually use it

The project is used by Android developers, teachers, and teams discussing architecture options through a small but realistic app.

A normal scenario is to open the sample in Android Studio, study the layers, inspect branches, and compare how code organization changes.

Architecture around a TODO screen

This diagram shows the sample model: one small product is used to compare layers and decisions.

Language: Plain text
Compose screen
  -> ViewModel
      -> repository
          -> local data source Room
          -> fake remote data source

What it feels like in practice

The project’s strength is limited scope. A TODO app is simple enough not to distract with business logic, but alive enough for architecture decisions.

Another advantage is connection to the modern Android stack: Compose, ViewModel, Flow, coroutines, and Room.

Limits and careful spots

The limitation is that a sample is not a template for blind copying. A real app may have different requirements, legacy code, and team constraints.

The project also explains what it is not, so it is better read as learning material rather than the one correct architecture.

Who it fits

Android Architecture примеры best fits learning and team discussions of Android architecture.

In the catalog, the project matters as a strong example of documentation through code: architecture is explained by a working small app, not only an article.

After studying it, teams should move only understood decisions into their project, not copy the entire structure as-is.

The value of Android Architecture Samples is that it is not an abstract argument about layers, but one understandable app used to compare approaches. TODO tasks are simple enough not to distract from architecture, while still having screens, state, data, and user actions. That makes the repository useful as a shared team language: where the ViewModel lives, how state flows, and where the boundary sits between the interface and the data source.