# angcyo/DslTabLayout

:hearts: Android界最万能的TabLayout(不仅仅是TabLayout), 支持任意类型的item, 支持Drawable类型的指示器,智能开启滚动,支持横竖向布局等

Repository: https://github.com/angcyo/DslTabLayout
Canonical: https://ross.abutalabs.com/products/dsltablayout
Homepage: https://github.com/angcyo/DslAdapter
Language: Kotlin
License: MIT
License Family: permissive
Topics: android, kotlin, dsl, tablayout, light, viewpager, viewpager2, badge, auto-scroll, auto-item-width, any-drawable, androidx, any-child-type
Last push: 2026-03-18T09:15:26+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 72, release rhythm 28, longevity 100
- inputs: {"age_days": 2476, "days_push": 168, "days_rel": 429, "gap_med": 31, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1761, forks 156 (observed 2026-08-28T04:05:32.651866+00:00)

## What it is
DslTabLayout is a highly customizable Android tab layout library written in Kotlin, built as a custom-drawn ViewGroup rather than a composite control. It supports arbitrary child view types, drawable indicators, badges, vertical layouts, ViewPager/ViewPager2 integration, and many indicator effects.

## Use cases
- add tabs to an android app
- sync tabs with viewpager2
- custom tab indicator drawable android
- scrollable tab bar with badges
- vertical tab layout android
- highlight one tab above the bar
- kotlin dsl tab layout library

## When to choose
- you need a general RecyclerView adapter solution (see the author's DslAdapter instead)
- you are not building an Android app
- you need bottom navigation bars rather than tabs

## Facets
- artifact type: library
- maturity: active
- function: ui-components, mobile-framework
- domain: mobile-development, frontend, android-tools
- platform: jvm
- tags: tablayout, viewpager, viewpager2, dsl, indicator, badge, androidx, jitpack, android

## Member repositories
- angcyo/DslTabLayout (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:32.651866+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:27:11.082420+00:00, confidence not recorded.
  - readme: https://github.com/angcyo/DslTabLayout (fetched 2026-08-28T04:05:32.651866+00:00, sha d2e32b543b93)
  - homepage: https://github.com/angcyo/DslAdapter (fetched 2026-08-29T11:05:23.027160+00:00, sha d24dd7e5ffce)
- Data as of 2026-08-30T08:39:29.467469+00:00.
