Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilibili/drawee-text-view
Simple drawee spannable text view based on Fresco
https://github.com/bilibili/drawee-text-view
android drawee-text fresco spannable
Last synced: 6 days ago
JSON representation
Simple drawee spannable text view based on Fresco
- Host: GitHub
- URL: https://github.com/bilibili/drawee-text-view
- Owner: bilibili
- License: apache-2.0
- Created: 2016-04-23T12:27:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-05T08:01:10.000Z (over 5 years ago)
- Last Synced: 2024-12-21T13:08:08.493Z (13 days ago)
- Topics: android, drawee-text, fresco, spannable
- Language: Java
- Size: 1.21 MB
- Stars: 760
- Watchers: 37
- Forks: 103
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DraweeTextView
Simple drawee spannable text view based on [Fresco][1].
[![Build Status](https://travis-ci.org/Bilibili/drawee-text-view.svg?branch=master)](https://travis-ci.org/Bilibili/drawee-text-view)
# Usage
```java
DraweeTextView textview = (DraweeTextView)findViewById(R.id.text);SpannableStringBuilder builder = new SpannableStringBuilder();
builder.append("2333333\n")
start = builder.length();
builder.append("[emotion:tv_cheers]");
DraweeSpan span = new DraweeSpan("http://static.yo9.com/web/emotions/tv_cheers.png");
builder.setSpan(span, start, builder.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
builder.append("bilibili- ( ゜- ゜)つロ 乾杯~\n");...
textview.setText(builder);
```
![demo](art/screenshot.png)[1]: https://github.com/facebook/fresco