ViewGroup.RemoveAllViews Method

Definition

Call this method to remove all child views from the ViewGroup.

[Android.Runtime.Register("removeAllViews", "()V", "GetRemoveAllViewsHandler")]
public virtual void RemoveAllViews ();
[<Android.Runtime.Register("removeAllViews", "()V", "GetRemoveAllViewsHandler")>]
abstract member RemoveAllViews : unit -> unit
override this.RemoveAllViews : unit -> unit
Attributes

Remarks

Call this method to remove all child views from the ViewGroup.

<strong>Note:</strong> do not invoke this method from #draw(android.graphics.Canvas), #onDraw(android.graphics.Canvas), #dispatchDraw(android.graphics.Canvas) or any related method.

Java documentation for android.view.ViewGroup.removeAllViews().

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