DraweeTextView

Additional

Language
Java
Version
N/A
Created
Apr 23, 2016
Updated
Aug 5, 2019 (Retired)
Owner
bilibili
Contributors
Yrom Wang (yrom)
Desmond Yao (desmond1121)
long_long_ago (skindhu)
3
Activity
Badge
Generate
Download
Source code

DraweeTextView

Simple drawee spannable text view based on Fresco.

Usage

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);