# android/car-samples architecture

> Architecture diagram of the GitHub repository android/car-samples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/android/car-samples
- Repository: https://github.com/android/car-samples

## Overview

This repository is a collection of Android car-app examples, not a single end-user service. The README describes the Car App Library samples as starting points for navigation and other car apps, and identifies car-lib as a separate Android Automotive OS sample. The tree shows navigation and showcase projects plus a Kotlin car-gear viewer. Source excerpts do not reveal runtime calls between their screens or services, so the graph keeps them as separate sample projects rather than inventing internal flows.

Main entry points: [`car_app_library/navigation`](https://github.com/android/car-samples/tree/main/car_app_library/navigation) (Navigation sample), [`car_app_library/showcase`](https://github.com/android/car-samples/tree/main/car_app_library/showcase) (Showcase sample), [`car-lib/CarGearViewerKotlin`](https://github.com/android/car-samples/tree/main/car-lib/CarGearViewerKotlin) (Gear viewer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_car_app_samples["Car App samples"]
  node_navigation_sample["Navigation sample"]
  node_showcase_sample["Showcase sample"]
end

subgraph group_automotive_sample["Automotive sample"]
  node_gear_viewer["Gear viewer"]
end

node_developer(("App developer"))

node_developer -->|"uses as sample"| node_navigation_sample
node_developer -->|"uses as sample"| node_showcase_sample
node_developer -->|"uses as sample"| node_gear_viewer

click node_navigation_sample "https://github.com/android/car-samples/tree/main/car_app_library/navigation"
click node_showcase_sample "https://github.com/android/car-samples/tree/main/car_app_library/showcase"
click node_gear_viewer "https://github.com/android/car-samples/tree/main/car-lib/CarGearViewerKotlin"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_navigation_sample,node_showcase_sample toneBlue
class node_gear_viewer toneAmber
class node_developer toneIndigo
```

## Components

### Car App samples

- [Navigation sample](https://github.com/android/car-samples/tree/main/car_app_library/navigation): `car_app_library/navigation`
- [Showcase sample](https://github.com/android/car-samples/tree/main/car_app_library/showcase): `car_app_library/showcase`

### Automotive sample

- [Gear viewer](https://github.com/android/car-samples/tree/main/car-lib/CarGearViewerKotlin): `car-lib/CarGearViewerKotlin`

### Other components

- **App developer**

## Connections

- App developer → Navigation sample: uses as sample (evidence: `README.md`)
- App developer → Showcase sample: uses as sample (evidence: `README.md`)
- App developer → Gear viewer: uses as sample (evidence: `README.md`)
