Megosztás a következőn keresztül:


ViewGroup.RemoveDetachedView(View, Boolean) Method

Definition

Finishes the removal of a detached view.

[Android.Runtime.Register("removeDetachedView", "(Landroid/view/View;Z)V", "GetRemoveDetachedView_Landroid_view_View_ZHandler")]
protected virtual void RemoveDetachedView (Android.Views.View? child, bool animate);
[<Android.Runtime.Register("removeDetachedView", "(Landroid/view/View;Z)V", "GetRemoveDetachedView_Landroid_view_View_ZHandler")>]
abstract member RemoveDetachedView : Android.Views.View * bool -> unit
override this.RemoveDetachedView : Android.Views.View * bool -> unit

Parameters

child
View

the child to be definitely removed from the view hierarchy

animate
Boolean

if true and the view has an animation, the view is placed in the disappearing views list, otherwise, it is detached from the window

Attributes

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 #requestLayout() or #invalidate() calls. For example, callers can #post(Runnable) post a Runnable which performs a #requestLayout() on the next frame, after all detach/remove calls are finished, causing layout to be run prior to redrawing the view hierarchy.

Java documentation for android.view.ViewGroup.removeDetachedView(android.view.View, boolean).

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

See also