ViewGroup.AttachViewToParent(View, Int32, ViewGroup+LayoutParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- <xref:Android.Views.ViewGroup.RemoveDetachedView(Android.Views.View%2c+System.Boolean)>
- DetachAllViewsFromParent()
- DetachViewFromParent(View)
- DetachViewFromParent(Int32)