activate All Text View Click
fun ViewBinding.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 ViewBinding 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
Parameters
background
是否显示点击背景
ignore Id
忽略配置movementMethod的ViewId
fun Activity.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 Activity 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
Parameters
background
是否显示点击背景
ignore Id
忽略配置movementMethod的ViewId
fun Fragment.activateAllTextViewClick(background: Boolean = true, @IdRes vararg ignoreId: Int)
Content copied to clipboard
循环 Fragment 控件并配置 LinkMovementMethod 或 ClickableMovementMethod
Parameters
background
是否显示点击背景
ignore Id
忽略配置movementMethod的ViewId