Package com. itxca. spannablex
Types
Link copied to clipboard
data class ReplaceRule(replaceString: String, isRegex: Boolean, matchRange: IntRange?, newString: CharSequence?, replacementMatch: OnSpanReplacementMatch?)
Content copied to clipboard
替换规则
Functions
Link copied to clipboard
fun Activity.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 Activity 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
fun Fragment.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 Fragment 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
fun ViewBinding.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 ViewBinding 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
Link copied to clipboard
配置 LinkMovementMethod 或 ClickableMovementMethod
Link copied to clipboard
fun View?.autoActivateClick(background: Boolean, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环获取控件并配置 LinkMovementMethod 或 ClickableMovementMethod
Link copied to clipboard
删除所有CharacterStyle Span
Link copied to clipboard
删除指定Span
Link copied to clipboard
fun String.toReplaceRule(isRegex: Boolean = false, matchIndex: Int? = null, matchRange: IntRange? = null, newString: CharSequence? = null, replacementMatch: OnSpanReplacementMatch? = null): ReplaceRule
Content copied to clipboard
创建替换规则