# android/views-widgets-samples

Multiple samples showing the best practices in views-widgets on Android.

Repository: https://github.com/android/views-widgets-samples
Canonical: https://ross.abutalabs.com/products/views-widgets-samples
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2025-07-11T13:00:08+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 31, release rhythm 35, longevity 100
- inputs: {"age_days": 2553, "days_push": 418, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5160, forks 2954 (observed 2026-08-28T04:09:11.494593+00:00)

## What it is
A collection of individual Android Studio sample projects demonstrating best practices for Android views and widgets, written in Java. The repository is no longer updated as its samples are being migrated to the android/platform-samples repository.

## Use cases
- learn how to build Android views and widgets
- find sample code for Android UI components
- understand best practices for Android layouts
- get started with Android Studio UI projects
- reference examples for custom Android widgets

## When to choose
- you want official Google sample code for Android views and widgets
- you are learning Android UI development with Java
- you need reference implementations of classic Android UI patterns

## When to avoid
- you need up-to-date samples, since the repo is frozen and migrated to platform-samples
- you are building with Jetpack Compose rather than the View system
- you want a reusable library rather than example projects

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, android-tools, tutorials
- platform: -
- tags: android-samples, views-widgets, java, google-android, sample-code, android, mobile

## Member repositories
- android/views-widgets-samples (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.494593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:54.108684+00:00, confidence not recorded.
  - readme: https://github.com/android/views-widgets-samples (fetched 2026-08-28T04:09:11.494593+00:00, sha afd7b8b9ba8b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
