setVisible

@CanIgnoreReturnValue
open fun setVisible(visible: Boolean, restart: Boolean): Boolean


@CanIgnoreReturnValue
open fun setVisible(visible: Boolean, restart: Boolean, animate: Boolean): Boolean

Changes the visibility with/without triggering the animation callbacks.

Return

true, if the visibility changes or will change after the animation; false, otherwise.

Parameters

visible

Whether to make the drawable visible.

restart

Whether to force starting the animation from the beginning.

animate

Whether to change the visibility with animation.

See also