setVisibility

fun setVisibility(view: View, visible: Boolean)

Exposes the attribute "android:visibility" for View to use it with viewBinding

Parameters

visible

if false, the visibility is set to GONE, else to VISIBLE