Drawable.SetVisible(Boolean, Boolean) Drawable.SetVisible(Boolean, Boolean) Method

Definition

Set whether this Drawable is visible.

[Android.Runtime.Register("setVisible", "(ZZ)Z", "GetSetVisible_ZZHandler")]
public virtual bool SetVisible (bool visible, bool restart);
abstract member SetVisible : bool * bool -> bool
override this.SetVisible : bool * bool -> bool

Parameters

visible
Boolean Boolean

Set to true if visible, false if not.

restart
Boolean Boolean

You can supply true here to force the drawable to behave as if it has just become visible, even if it had last been set visible. Used for example to force animations to restart.

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to