ViewGroup.AttachViewToParent(View, Int32, ViewGroup+LayoutParams) 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);
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 View

the child to attach

index
Int32 Int32

the index at which the child should be attached

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

the layout parameters of the child

Remarks

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