Share via


View.Visibility Property

Definition

Returns the visibility status for this view. -or- Set the visibility state of this view.

public virtual Android.Views.ViewStates Visibility { [Android.Runtime.Register("getVisibility", "()I", "GetGetVisibilityHandler")] get; [Android.Runtime.Register("setVisibility", "(I)V", "GetSetVisibility_IHandler")] set; }
[<get: Android.Runtime.Register("getVisibility", "()I", "GetGetVisibilityHandler")>]
[<set: Android.Runtime.Register("setVisibility", "(I)V", "GetSetVisibility_IHandler")>]
member this.Visibility : Android.Views.ViewStates with get, set

Property Value

One of #VISIBLE, #INVISIBLE, or #GONE.

Attributes

Remarks

Property getter documentation:

Returns the visibility status for this view.

Java documentation for android.view.View.getVisibility().

Property setter documentation:

Set the visibility state of this view.

Java documentation for android.view.View.setVisibility(int).

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