setVisibility

open fun setVisibility(@IdRes id: Int, visibility: Int): View

设置视图的可见性 setVisibility

Return

View

Parameters

id

视图ID

visibility

可见性


open fun setVisibility(@IdRes id: Int, isVisible: Boolean): View

设置视图的可见性 setVisibility

Return

View

Parameters

id

视图ID

isVisible

是否可见;true时设置为:VISIBLE;false时设置为:GONE