ViewGroup.RemoveViewsInLayout(Int32, Int32) 方法

定义

在布局期间删除一系列视图。

[Android.Runtime.Register("removeViewsInLayout", "(II)V", "GetRemoveViewsInLayout_IIHandler")]
public virtual void RemoveViewsInLayout (int start, int count);
[<Android.Runtime.Register("removeViewsInLayout", "(II)V", "GetRemoveViewsInLayout_IIHandler")>]
abstract member RemoveViewsInLayout : int * int -> unit
override this.RemoveViewsInLayout : int * int -> unit

参数

start
Int32

要从组中删除的第一个视图的索引

count
Int32

要从组中删除的视图数

属性

注解

在布局期间删除一系列视图。 如果在 onLayout () 方法中,需要删除更多视图,这非常有用。

<strong>注意:</strong> 不会从 #draw(android.graphics.Canvas)#onDraw(android.graphics.Canvas)#dispatchDraw(android.graphics.Canvas) 或任何相关方法调用此方法。

android.view.ViewGroup.removeViewsInLayout(int, int)Java 文档。

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

适用于