Package io.rong.imkit.utils
Class TextViewUtils.URLSpanUnderlineSameColor
-
- All Implemented Interfaces:
-
android.os.Parcelable,android.text.ParcelableSpan,android.text.style.UpdateAppearance
public class TextViewUtils.URLSpanUnderlineSameColor extends URLSpan自定义链接样式:保留下划线,同时保持与普通文字一致的颜色。 通过先记录调用前的颜色,再覆盖为默认文字色,避免主题默认的链接色。
-
-
Field Summary
Fields Modifier and Type Field Description public final static intCONTENTS_FILE_DESCRIPTORpublic final static intPARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors Constructor Description TextViewUtils.URLSpanUnderlineSameColor(String url)
-
Method Summary
Modifier and Type Method Description voidupdateDrawState(@NonNull() TextPaint ds)-
Methods inherited from class android.text.style.URLSpan
describeContents, getSpanTypeId, getURL, onClick, writeToParcel -
Methods inherited from class android.text.style.CharacterStyle
getUnderlying, wrap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TextViewUtils.URLSpanUnderlineSameColor
TextViewUtils.URLSpanUnderlineSameColor(String url)
-
-
Method Detail
-
updateDrawState
void updateDrawState(@NonNull() TextPaint ds)
-
-
-
-