setVisible

public BaseViewHolder setVisible(int viewId, boolean visible)

Sets the visibility of the view to VISIBLE (true) or GONE (false).

Return

BaseViewHolder for chaining calls.

Parameters

viewId

The ID of the view.

visible

Set to true to make the view visible, false to hide it.