TextViewUtils

public class TextViewUtils

Handles text content for TextMessage and ReferenceMessage.

Constructors

Link copied to clipboard
public void TextViewUtils()

Types

Link copied to clipboard
public interface RegularCallBack
Link copied to clipboard
Custom link style: keeps the underline while preserving the original text color instead of the theme's default link color.

Functions

Link copied to clipboard
public static void enableDrawableAutoMirror(TextView textView)
Enables auto-mirroring for the TextView's compound Drawables, useful for directional Drawables in RTL layouts.
Link copied to clipboard
public static SpannableStringBuilder getRichSpannable(String content, TextViewUtils.RegularCallBack callBack, int foregroundColor)
Link copied to clipboard
public static SpannableStringBuilder getSpannable(String content, TextViewUtils.RegularCallBack callBack)
public static SpannableStringBuilder getSpannable(String content, boolean regular, TextViewUtils.RegularCallBack callBack)
Link copied to clipboard
public static void setCompoundDrawables(TextView textView, int gravity, int resId)
Sets compound drawables on a TextView using setCompoundDrawablesRelative.