Sdílet prostřednictvím


ViewGroup.AttachViewToParent(View, Int32, ViewGroup+LayoutParams) Method

Definition

Attaches a view to this view group.

[Android.Runtime.Register("attachViewToParent", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V", "GetAttachViewToParent_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_Handler")]
protected virtual void AttachViewToParent (Android.Views.View? child, int index, Android.Views.ViewGroup.LayoutParams? params);
[<Android.Runtime.Register("attachViewToParent", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V", "GetAttachViewToParent_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_Handler")>]
abstract member AttachViewToParent : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> unit
override this.AttachViewToParent : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> unit

Parameters

child
View

the child to attach

index
Int32

the index at which the child should be attached

params
ViewGroup.LayoutParams

the layout parameters of the child

Attributes

Remarks

Java documentation for android.view.ViewGroup.attachViewToParent(android.view.View, int, android.view.LayoutParams).

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

See also