Skip to content
zzhoujay edited this page Jul 25, 2017 · 1 revision

通过手动修复接口可以修改链接文本的样式

        RichText.from(text).linkFix(new LinkFixCallback() {
            @Override
            public void fix(LinkHolder holder) {
                holder.setColor(Color.RED);
                holder.setUnderLine(true);
                Toast.makeText(MainActivity.this, holder.getUrl(), Toast.LENGTH_SHORT).show();
            }
        }).into(textView);
Clone this wiki locally