ViewGroup.AttachViewToParent(View, Int32, ViewGroup+LayoutParams) 方法

定义

将视图附加到此视图组。

[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

参数

child
View

要附加的子级

index
Int32

子级应附加到的索引

params
ViewGroup.LayoutParams

子元素的布局参数

属性

注解

适用于 . 的 android.view.ViewGroup.attachViewToParent(android.view.View, int, android.view.LayoutParams)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅