# getActivity/TitleBar

Android 标题栏框架，从此布局属性不用记

Repository: https://github.com/getActivity/TitleBar
Canonical: https://ross.abutalabs.com/products/titlebar
Language: Java
License: Apache-2.0
License Family: permissive
Topics: toolbar, actionbar, coordinatorlayout, appbarlayout, collapsingtoolbarlayout, application-titlebar, android
Last push: 2026-02-04T11:22:53+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 65, release rhythm 25, longevity 100
- inputs: {"age_days": 2938, "days_push": 210, "days_rel": 284, "gap_med": 267, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1833, forks 219 (observed 2026-08-28T04:05:42.442468+00:00)

## What it is
An Android title bar framework written in Java that lets developers configure toolbars, action bars, and collapsing toolbars entirely through XML layout attributes. It eliminates the need to memorize complex Toolbar/AppBarLayout APIs by providing a single declarative TitleBar view.

## Use cases
- add a title bar to an android activity with xml attributes
- customize toolbar title color size and gravity declaratively
- implement light night and transparent title bar styles
- build collapsing toolbar layouts without memorizing coordinatorlayout apis
- replace default actionbar with a customizable title bar view

## When to choose
- you are building a native Android app in Java or Kotlin and want a simple declarative title bar
- you frequently struggle with Toolbar, AppBarLayout, or CollapsingToolbarLayout attribute configuration
- you want a lightweight UI component library with no heavy dependencies

## When to avoid
- you are building with Jetpack Compose and prefer declarative Kotlin UI over XML layouts
- you need a full app framework rather than just a title bar component
- your project targets platforms other than Android

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, mobile-framework
- domain: android-tools, mobile-development, frontend
- platform: -
- tags: titlebar, toolbar, actionbar, appbarlayout, collapsingtoolbarlayout, java, android-ui, android

## Member repositories
- getActivity/TitleBar (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.442468+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:18:38.286383+00:00, confidence not recorded.
  - readme: https://github.com/getActivity/TitleBar (fetched 2026-08-28T04:05:42.442468+00:00, sha da44edb29555)
- Data as of 2026-08-30T08:39:29.467469+00:00.
