// the find
CarGuo/GSYRickText
类似微博的emoji表情、@人、话题等的EdiText,优化了编辑框中的光标点击和删除处理。TextView支持emoji表情、话题、链接、电话和@某人特殊显示的文本。
An Android library for rendering and editing rich text in the style of Weibo — emoji, @mentions, and #topics displayed as styled spans in both TextView and EditText. The edit mode handles cursor behavior and atomic deletion for embedded elements, which is the genuinely hard part of this problem. Aimed at Android developers building social-style text input.
The cursor and deletion handling for emoji/mention/topic spans is the real value here — getting a user to select and delete an @mention as a single unit in EditText without corrupting the underlying string is fiddly, and this library does it. Both Java and Kotlin versions of the library ship from the same repo, so you're not forced into one or the other. The builder pattern API (RichTextBuilder, RichEditBuilder) is clean enough that wiring callbacks for taps on @users, #topics, and URLs doesn't require subclassing anything. Span behavior is extensible — the demo shows custom span subclasses for click handling, so you can swap in your own visual treatment without forking core logic.
Last library release was v2.1.5 in January 2018 and the last repo push was October 2024 — this is effectively unmaintained, and the build config still uses the deprecated 'compile' dependency directive from pre-Gradle-3 days, which won't build against modern Android Gradle Plugin without modification. There's no support for modern emoji (Unicode 13+, skin tones, ZWJ sequences); the library treats emoji as named image assets from a fixed set, so you'd need to swap in the entire emoji set yourself. No Compose support at all — if your project uses Jetpack Compose for any UI, this library is dead weight since it's entirely View-based. Documentation is in Chinese only, with no English README beyond the feature table.