# TextViewUtils

public class TextViewUtils

处理 textMessage 和 ReferenceMessage 的文本内容

## Constructors

TextViewUtils
Link copied to clipboard
public void TextViewUtils()

## Types

RegularCallBack
Link copied to clipboard
public interface RegularCallBack
URLSpanUnderlineSameColor
Link copied to clipboard
public class URLSpanUnderlineSameColor
自定义链接样式：保留下划线，同时保持与普通文字一致的颜色。 通过先记录调用前的颜色，再覆盖为默认文字色，避免主题默认的链接色。

## Functions

enableDrawableAutoMirror
Link copied to clipboard
public static void enableDrawableAutoMirror(TextView textView)
设置 TextView 的 Drawable 自动翻转，适用于带有方向性的 Drawable
getRichSpannable
Link copied to clipboard
public static SpannableStringBuilder getRichSpannable(String content, TextViewUtils.RegularCallBack callBack, int foregroundColor)
getSpannable
Link copied to clipboard
public static SpannableStringBuilder getSpannable(String content, TextViewUtils.RegularCallBack callBack)
public static SpannableStringBuilder getSpannable(String content, boolean regular, TextViewUtils.RegularCallBack callBack)
setCompoundDrawables
Link copied to clipboard
public static void setCompoundDrawables(TextView textView, int gravity, int resId)
设置 TextView 的setCompoundDrawablesRelative