Compartilhar via


ViewStructure.NewChild(Int32) Method

Definition

Create a new child ViewStructure in this view, putting into the list of children at <var>index</var>.

[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

Parameters

index
Int32

Returns

Returns an fresh ViewStructure ready to be filled in.

Attributes

Remarks

Create a new child ViewStructure in this view, putting into the list of children at <var>index</var>.

<b>NOTE: </b>you must pre-allocate space for the child first, by calling either #addChildCount(int) or #setChildCount(int).

Java documentation for android.view.ViewStructure.newChild(int).

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