Android.Views.ViewGroup.RemoveDetachedView Method
Finishes the removal of a detached view.

Syntax

[Android.Runtime.Register("removeDetachedView", "(Landroid/view/View;Z)V", "GetRemoveDetachedView_Landroid_view_View_ZHandler")]
protected virtual void RemoveDetachedView (View child, bool animate)

See Also

ViewGroup.AttachViewToParent(View, System.Int32, System.Int32)
ViewGroup.DetachAllViewsFromParent
ViewGroup.DetachViewFromParent(View)
ViewGroup.DetachViewFromParent(int)

Parameters

child
the child to be definitely removed from the view hierarchy
animate
if true and the view has an animation, the view is placed in the disappearing views list, otherwise, it is detached from the window

Remarks

Finishes the removal of a detached view. This method will dispatch the detached from window event and notify the hierarchy change listener.

This method is intended to be lightweight and makes no assumptions about whether the parent or child should be redrawn. Proper use of this method will include also making any appropriate View.RequestLayout or View.Invalidate calls. For example, callers can View.Post(Java.Lang.IRunnable) a Java.Lang.IRunnable which performs a View.RequestLayout on the next frame, after all detach/remove calls are finished, causing layout to be run prior to redrawing the view hierarchy.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1