语言

ViewStructure.NewChild(Int32) 方法

定义

在此视图中创建新子级 ViewStructure ,并将其置于 索引处的子级列表中。

[Android.Runtime.Register("newChild", "(I)Landroid/view/ViewStructure;", "GetNewChild_IHandler", ApiSince=23)]
public abstract Android.Views.ViewStructure? NewChild(int index);
[<Android.Runtime.Register("newChild", "(I)Landroid/view/ViewStructure;", "GetNewChild_IHandler", ApiSince=23)>]
abstract member NewChild : int -> Android.Views.ViewStructure

参数

index
Int32

用于索引的 System.Int32 值。

返回

返回要填充的全新 ViewStructure 准备。

特性

注解

在此视图中创建新子级 ViewStructure ,并将其置于 索引处的子级列表中。

<b>注意:</b>必须首先通过调用或#addChildCount(int)#setChildCount(int)调用来预分配子级的空间。

Java文档android.view.ViewStructure.newChild(int)。

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

适用于