setVisibility

open fun setVisibility(visibility: Int)

Sets the visibility of this view. When the view becomes visible, it prepares and inflates the empty state layout.

Parameters

visibility

One of VISIBLE, INVISIBLE, or GONE.