# MZCretin/ExpandableTextView

实现类似微博内容，@用户，链接高亮，@用户和链接可点击跳转，可展开和收回的TextView

Repository: https://github.com/MZCretin/ExpandableTextView
Canonical: https://ross.abutalabs.com/products/mzcretin-expandabletextview
Language: Java
License: MIT
License Family: permissive
Topics: textview, expandabletextview
Last push: 2025-10-10T07:30:24+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 46, release rhythm 8, longevity 100
- inputs: {"age_days": 2938, "days_push": 327, "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 1432, forks 165 (observed 2026-08-28T04:04:43.131027+00:00)

## What it is
An Android TextView library that renders Weibo-style content with expandable/collapsible text, highlighted and clickable @mentions and links. It supports custom parsing rules, state preservation in RecyclerViews, and expand/collapse event listeners.

## Use cases
- display expandable social media post text in android
- make @mentions and links clickable in a textview
- collapse long text with expand/collapse toggle in a feed list
- preserve expand state in recyclerview items
- highlight and handle link clicks in post content
- custom text pattern parsing in android textview

## When to choose
- building an Android social feed with Weibo-like post text
- you need expandable text with clickable mentions and links out of the box
- you want RecyclerView state preservation for expanded items

## When to avoid
- building for iOS, Flutter, or web instead of native Android
- you only need simple text truncation without mention/link handling
- your project cannot use JitPack or AndroidX dependencies

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, parser
- domain: mobile-development, android-tools, frontend
- platform: jvm
- tags: textview, expandable-text, social-feed, spannable, mention-highlighting, link-clickable, android, mobile

## Member repositories
- MZCretin/ExpandableTextView (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.131027+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-30T04:37:00.000565+00:00, confidence not recorded.
  - readme: https://github.com/MZCretin/ExpandableTextView (fetched 2026-08-28T04:04:43.131027+00:00, sha ac2878b3770c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
