# laobie/StatusBarUtil

A util for setting status bar style on Android App.

Repository: https://github.com/laobie/StatusBarUtil
Canonical: https://ross.abutalabs.com/products/statusbarutil
Homepage: http://t.cn/Rq746Kb
Language: Java
License: Apache-2.0
License Family: permissive
Topics: statusbarutil, android, statusbar, utils
Last push: 2022-06-24T09:55:37+00:00

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

## Adoption (not part of the score)
Stars 8745, forks 1703 (observed 2026-08-28T04:10:25.494319+00:00)

## What it is
StatusBarUtil is a Java utility library for Android that simplifies setting the status bar style (color, translucency, transparency) on apps running API 19 and above. It provides static helper methods for common scenarios including DrawerLayout layouts, ImageView headers, Fragments, and swipe-back pages.

## Use cases
- set android status bar color
- make status bar translucent on android
- immersive status bar android app
- status bar color for drawerlayout
- change status bar style in fragment
- status bar color for swipe back activity

## When to choose
- you need quick status bar color/transparency control on Android 4.4+ without writing system UI flag code yourself
- your app uses DrawerLayout, ImageView headers, or ViewPager fragments and needs consistent status bar styling
- you want a simple static-method API callable right after setContentView

## When to avoid
- you target only Android 5.0+ and prefer native themes or the official WindowInsetsController APIs
- you use Jetpack Compose, where this View-based utility does not apply
- you need an actively maintained dependency - the last release was 2022 and JCenter is deprecated

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, android-tools
- platform: jvm
- tags: status-bar, immersive-mode, android-ui, utility-library, android, mobile

## Member repositories
- laobie/StatusBarUtil (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:25.494319+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-29T17:25:17.345711+00:00, confidence not recorded.
  - readme: https://github.com/laobie/StatusBarUtil (fetched 2026-08-28T04:10:25.494319+00:00, sha 27659e6ee720)
  - homepage: http://t.cn/Rq746Kb (fetched 2026-08-29T08:25:35.071813+00:00, sha 3671966fc1a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
