# Kennyc1012/MultiStateView

Android View that displays different content based on its state

Repository: https://github.com/Kennyc1012/MultiStateView
Canonical: https://ross.abutalabs.com/products/multistateview
Language: Kotlin
License Family: other
Last push: 2021-02-13T14:21:40+00:00

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

## Adoption (not part of the score)
Stars 1216, forks 178 (observed 2026-08-28T04:04:01.251814+00:00)

## What it is
An Android UI library providing a custom View that switches between content, loading, empty, and error states. Views for each state are declared in XML and switched programmatically via a simple ViewState property.

## Use cases
- show a loading spinner while fetching data in an Android app
- display an empty state screen when a list has no items
- show an error view with retry when a network request fails
- switch between loading, content, empty, and error screens in one layout
- add animated transitions between view states in Android

## When to choose
- you build native Android UIs and want a simple XML-declarative multi-state container
- you want a lightweight, Kotlin-friendly view without pulling in a large UI framework

## When to avoid
- you develop for iOS, web, or cross-platform frameworks
- you need Jetpack Compose state handling rather than XML views
- you need actively maintained software with a defined license

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, state-management
- domain: mobile-development, android-tools, frontend
- platform: jvm
- tags: android-view, loading-state, empty-state, error-state, xml-layouts, android, mobile

## Member repositories
- Kennyc1012/MultiStateView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.251814+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-30T06:17:10.191153+00:00, confidence not recorded.
  - readme: https://github.com/Kennyc1012/MultiStateView (fetched 2026-08-28T04:04:01.251814+00:00, sha 4e694d55c0df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
