setVisibility

open fun setVisibility(visibility: Int)

Sets the visibility of this view. When setting to VISIBLE, ensures that the view is fully initialized before being shown.

Parameters

visibility

One of VISIBLE, INVISIBLE, or GONE.