# qyxxjd/MultipleStatusView

一个支持多种状态的自定义View,可以方便的切换到：加载中视图、错误视图、空数据视图、网络异常视图、内容视图。

Repository: https://github.com/qyxxjd/MultipleStatusView
Canonical: https://ross.abutalabs.com/products/multiplestatusview
Language: Java
License: MIT
License Family: permissive
Topics: android, custom-view, layout-switch
Last push: 2019-12-18T07:07:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3881, "days_push": 2450, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1669, forks 236 (observed 2026-08-28T04:05:19.844704+00:00)

## What it is
A lightweight Android custom View (MultipleStatusView) that lets developers switch a screen between loading, error, empty-data, no-network, and content states with a single API call. It supports custom layouts and hint text for each state via XML attributes or programmatic methods.

## Use cases
- show a loading spinner while fetching data in an Android app
- display an empty state view when a list has no data
- show an error view when a request fails on Android
- display a no-network view when connectivity is lost
- switch between content and placeholder states in one container
- customize loading/empty/error layouts per screen

## When to choose
- building native Android apps in Java that need simple status/placeholder screen switching
- you want a tiny (~7KB, 52 methods) drop-in view with XML-configurable state layouts
- you prefer a mature, widely used view over rolling your own state container

## When to avoid
- developing with Kotlin-first Jetpack Compose UI instead of XML views
- you need complex multi-region state management rather than a single full-screen status switch
- the project requires actively maintained dependencies, as the last release was in 2019

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, state-management
- domain: mobile-development, android-tools, frontend
- platform: -
- tags: custom-view, layout-switching, loading-state, empty-state, error-state, java, android-ui, android, mobile

## Member repositories
- qyxxjd/MultipleStatusView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.844704+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-30T03:42:47.741225+00:00, confidence not recorded.
  - readme: https://github.com/qyxxjd/MultipleStatusView (fetched 2026-08-28T04:05:19.844704+00:00, sha ff1225166ac6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
