Android.Views.ViewGroup.RemoveAllViewsInLayout Method
Called by a ViewGroup subclass to remove child views from itself, when it must first know its size on screen before it can calculate how many child views it will render.

Syntax

[Android.Runtime.Register("removeAllViewsInLayout", "()V", "GetRemoveAllViewsInLayoutHandler")]
public virtual void RemoveAllViewsInLayout ()

Remarks

Called by a ViewGroup subclass to remove child views from itself, when it must first know its size on screen before it can calculate how many child views it will render. An example is a Gallery or a ListView, which may "have" 50 children, but actually only render the number of children that can currently fit inside the object on screen. Do not call this method unless you are extending ViewGroup and understand the view measuring and layout pipeline.

Note: do not invoke this method from View.Draw(Android.Graphics.Canvas), View.OnDraw(Android.Graphics.Canvas), ViewGroup.dispatchDraw(android.graphics.Canvas) or any related method.

[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