Share via


View.OnVisibilityChanged(View, ViewStates) Method

Definition

Called when the visibility of the view or an ancestor of the view has changed.

[Android.Runtime.Register("onVisibilityChanged", "(Landroid/view/View;I)V", "GetOnVisibilityChanged_Landroid_view_View_IHandler")]
protected virtual void OnVisibilityChanged (Android.Views.View changedView, Android.Views.ViewStates visibility);
[<Android.Runtime.Register("onVisibilityChanged", "(Landroid/view/View;I)V", "GetOnVisibilityChanged_Landroid_view_View_IHandler")>]
abstract member OnVisibilityChanged : Android.Views.View * Android.Views.ViewStates -> unit
override this.OnVisibilityChanged : Android.Views.View * Android.Views.ViewStates -> unit

Parameters

changedView
View

The view whose visibility changed. May be this or an ancestor view.

visibility
ViewStates

The new visibility, one of #VISIBLE, #INVISIBLE or #GONE.

Attributes

Remarks

Called when the visibility of the view or an ancestor of the view has changed.

Java documentation for android.view.View.onVisibilityChanged(android.view.View, 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