awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
android avatar

android/compose-samples

0
View on GitHub↗
22,893 stars·5,382 forks·Kotlin·apache-2.0·8 viewsdeveloper.android.com/jetpack/compose↗

Compose Samples

Compose Samples is a collection of reference implementations for the Jetpack Compose UI library, serving as a practical guide for building native Android user interfaces. It demonstrates the use of a declarative framework where Kotlin functions describe layout structures and data dependencies, enabling developers to construct modern, reactive interfaces.

The repository highlights architectural patterns that prioritize maintainability and testability, such as layered organization and unidirectional data flow. It showcases how to implement adaptive layouts that automatically adjust to various screen sizes, orientations, and foldable form factors, alongside the integration of standardized design systems and theming tools.

These samples cover a broad range of development capabilities, including lifecycle-aware component management, dependency injection, and navigation handling. The collection also illustrates how to manage complex window insets, integrate modern declarative components into legacy view hierarchies, and implement state management patterns that remain consistent across configuration changes.

Features

  • Declarative UI Libraries - Provides a declarative UI library for building native Android interfaces using Kotlin functions.
  • Android Development - Serves as a comprehensive toolkit for Android application development, including dependency injection and lifecycle management.
  • Application Architecture Patterns - Provides architectural patterns that isolate business logic from presentation for maintainability.
  • Declarative UI Frameworks - Provides a declarative framework for building native user interfaces using functional component composition.
  • Reactive State Management - Implements reactive data patterns to synchronize user interface components with underlying data sources across configuration changes.
  • Responsive Layouts - Implements responsive interfaces that automatically adjust to various screen sizes and foldable form factors.
  • Material Design Libraries - Implements standardized Material Design components and theming to ensure a consistent visual identity.
  • Android Activity Lifecycle Management - Manages component behavior based on activity and fragment lifecycle states to prevent memory leaks.
  • Unidirectional Data Flow Architectures - Implements unidirectional data flow to maintain predictable synchronization between state and UI.
  • Layered Architectures - Organizes code into distinct interface, data, and domain layers to isolate business logic.
  • Display Feature Detectors - Queries information about screen cutouts and display shapes to adapt layouts for irregular device screens.
  • Navigation Controllers - Manages application flow and transitions between views while maintaining state across the user journey.
  • Responsive Design Patterns - Demonstrates responsive design patterns that adapt interfaces to various screen sizes and foldable form factors.
  • Responsive Layout Adapters - Provides responsive layout components that automatically adjust to varying screen sizes and device form factors.
  • Design System Implementations - Applies consistent visual styling and typography through centralized design system implementations.
  • Official Projects - Official collection of sample applications demonstrating best practices.
  • Reference Projects - Official repository containing Google-authored sample applications.
  • Communication Tools - Chat application sample built with Jetpack Compose.
  • Media and Entertainment - Podcast app sample demonstrating dynamic theming and architecture.
  • News and Information - Sample news reading application for Jetpack Compose.
  • Sample And Concept Apps - Sample survey application showcasing state and input handling.
  • Sample Applications - Sample survey application for Jetpack Compose.
  • Dependency Injection - Automates dependency provision to simplify testing and component lifecycle management.
  • Dependency Injection Containers - Implements dependency injection to decouple components and simplify object lifecycle management.
  • Application Layer Architectures - Structures application code into interface, data, and domain layers for improved maintainability.
  • Inset Dispatchers - Signals that window insets have been fully handled at a specific view level to stop further propagation and improve layout performance.
  • Hybrid View Bridges - Integrates modern declarative components into legacy view hierarchies for incremental migration.
  • Inset Adjusters - Modifies inset data to apply specific padding or margin requirements to child views within the layout hierarchy.
  • Inset Calculators - Measures the dimensions of system UI elements or screen areas that overlap with the application window to ensure content remains visible.
  • Declarative UI Composition - Uses functional composition to define interface structures and data dependencies for predictable updates.
  • Declarative View Embeds - Enables incremental migration by embedding declarative components within legacy view systems.
  • Data Persistence and Storage - Provides local database systems for persistent storage and offline capabilities.
  • State Ownership Models - Ensures consistent state management by designating a single source of truth for data.
  • Background Task Schedulers - Supports background task scheduling for deferrable operations without blocking the main thread.
  • Hardware Emulators - Tests applications on virtual device instances to ensure responsive layouts adapt to different configurations.
  • Presentation Transitions - Supports fluid motion and state-based transitions between interface elements to improve responsiveness.
  • Visibility Utilities - Checks whether system UI elements are visible and retrieves their potential inset values regardless of their current state.
  • Obscured Region Identifiers - Locates specific rectangular areas of the window covered by system UI components to prevent overlapping critical content.
  • Performance Benchmarking - Provides tools for benchmarking application execution to identify performance bottlenecks.
  • Build Configuration Management - Manages build configurations to generate multiple application versions from a single project.
  • Biometric Authentication - Integrates device-level biometric sensors to verify user identity and protect sensitive data.
  • Custom Layouts - Provides base structures for constructing bespoke interface arrangements and complex grid layouts.
  • UI Inspection Tools - Provides tools for inspecting UI hierarchies and visualizing interface changes in real-time.

Star history

Star history chart for android/compose-samplesStar history chart for android/compose-samples

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does android/compose-samples do?

Compose Samples is a collection of reference implementations for the Jetpack Compose UI library, serving as a practical guide for building native Android user interfaces. It demonstrates the use of a declarative framework where Kotlin functions describe layout structures and data dependencies, enabling developers to construct modern, reactive interfaces.

What are the main features of android/compose-samples?

The main features of android/compose-samples are: Declarative UI Libraries, Android Development, Application Architecture Patterns, Declarative UI Frameworks, Reactive State Management, Responsive Layouts, Material Design Libraries, Android Activity Lifecycle Management.

What are some open-source alternatives to android/compose-samples?

Open-source alternatives to android/compose-samples include: android/sunflower — Sunflower is a reference implementation designed to demonstrate modern Android development patterns and… android/nowinandroid — Now in Android is a reference application and framework designed to demonstrate modern development patterns for the… jonataslaw/get — Get is a framework for Flutter that provides a comprehensive toolkit for dependency injection, internationalization,… skydoves/pokedex — Pokedex is a reference implementation of an Android application that utilizes the MVVM architecture, Jetpack Compose… gurupreet/composecookbook — ComposeCookBook is a Jetpack Compose UI component library and layout reference. It serves as a collection of… androidx/androidx — AndroidX is the official collection of Android Jetpack libraries for building Android applications. It provides a…

Open-source alternatives to Compose Samples

Similar open-source projects, ranked by how many features they share with Compose Samples.
  • android/sunflowerandroid avatar

    android/sunflower

    17,774View on GitHub↗

    Sunflower is a reference implementation designed to demonstrate modern Android development patterns and industry-standard architectural practices. It serves as a comprehensive guide for building functional mobile applications by integrating declarative user interface toolkits with robust data management and navigation systems. The project distinguishes itself by showcasing the transition from legacy view-based systems to modern declarative frameworks. It provides a practical example of how to organize code into distinct layers, manage complex state, and implement dependency injection to ensur

    Kotlin
    View on GitHub↗17,774
  • android/nowinandroidandroid avatar

    android/nowinandroid

    21,358View on GitHub↗

    Now in Android is a reference application and framework designed to demonstrate modern development patterns for the Android platform. It provides a comprehensive implementation of a modular architecture, utilizing industry-standard practices to organize codebases into independent components that support long-term maintainability and build performance. The project centers on a reactive, unidirectional data flow model that synchronizes visual components with underlying data states. By employing a declarative toolkit for interface construction, the application ensures that screen layouts update

    Kotlinandroidjetpack-composekotlin
    View on GitHub↗21,358
  • jonataslaw/getjonataslaw avatar

    jonataslaw/get

    11,181View on GitHub↗

    Get is a framework for Flutter that provides a comprehensive toolkit for dependency injection, internationalization, route management, and reactive state management. It includes a UI utility kit for handling themes, adaptive layouts, and the display of overlays such as snackbars and dialogs. The framework is distinguished by its ability to perform navigation and overlay management without requiring a build context. It also features a dependency injection container that manages the memory lifecycle of controllers and services, and a localization system that maps keys to strings to update appli

    Dart
    View on GitHub↗11,181
  • skydoves/pokedexskydoves avatar

    skydoves/Pokedex

    8,334View on GitHub↗

    Pokedex is a reference implementation of an Android application that utilizes the MVVM architecture, Jetpack Compose for its declarative user interface, and Hilt for dependency injection. It serves as a sample project demonstrating a mobile application built with Android Jetpack and a Kotlin Coroutines network client to manage asynchronous data requests. The project implements a modular codebase to optimize build performance and enforce internal boundaries. It features a local persistence layer using the Room library to cache remote data on the device and utilizes Material Motion for fluid in

    Kotlinandroidcoroutineshilt
    View on GitHub↗8,334
  • See all 30 alternatives to Compose Samples→