setVisibility

open override fun setVisibility(visibility: Int)

Sets the visibility of the widget and uses the provided value when the widget is inactive.

Equivalent to providing the android:visibility attribute in the layout xml file.