语言

ViewGroup.RemoveAllViews 方法

定义

调用此方法可从 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
特性

注解

调用此方法可从 ViewGroup 中删除所有子视图。

注意:请勿从#draw(android.graphics.Canvas)#onDraw(android.graphics.Canvas)#dispatchDraw(android.graphics.Canvas)或任何相关方法调用此方法。

Java文档android.view.ViewGroup.removeAllViews()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于