setTag

open fun setTag(@IdRes id: Int, tag: Any): View

设置视图的标签 setTag

Return

View

Parameters

id

视图ID

tag

标签


open fun setTag(@IdRes id: Int, key: Int, tag: Any): View

设置视图的标签 setTag

Return

View

Parameters

id

视图ID

key

标签的key

tag

标签