Partager via


ViewGroup.AddViewInLayout Method

Definition

Overloads

AddViewInLayout(View, Int32, ViewGroup+LayoutParams)

Adds a view during layout.

AddViewInLayout(View, Int32, ViewGroup+LayoutParams, Boolean)

Adds a view during layout.

AddViewInLayout(View, Int32, ViewGroup+LayoutParams)

Adds a view during layout.

[Android.Runtime.Register("addViewInLayout", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)Z", "GetAddViewInLayout_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_Handler")]
protected virtual bool AddViewInLayout (Android.Views.View? child, int index, Android.Views.ViewGroup.LayoutParams? params);
[<Android.Runtime.Register("addViewInLayout", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)Z", "GetAddViewInLayout_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_Handler")>]
abstract member AddViewInLayout : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> bool
override this.AddViewInLayout : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> bool

Parameters

child
View

the view to add to the group

index
Int32

the index at which the child must be added or -1 to add last

params
ViewGroup.LayoutParams

the layout parameters to associate with the child

Returns

true if the child was added, false otherwise

Attributes

Remarks

Java documentation for android.view.ViewGroup.addViewInLayout(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

AddViewInLayout(View, Int32, ViewGroup+LayoutParams, Boolean)

Adds a view during layout.

[Android.Runtime.Register("addViewInLayout", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;Z)Z", "GetAddViewInLayout_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_ZHandler")]
protected virtual bool AddViewInLayout (Android.Views.View? child, int index, Android.Views.ViewGroup.LayoutParams? params, bool preventRequestLayout);
[<Android.Runtime.Register("addViewInLayout", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;Z)Z", "GetAddViewInLayout_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_ZHandler")>]
abstract member AddViewInLayout : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams * bool -> bool
override this.AddViewInLayout : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams * bool -> bool

Parameters

child
View

the view to add to the group

index
Int32

the index at which the child must be added or -1 to add last

params
ViewGroup.LayoutParams

the layout parameters to associate with the child

preventRequestLayout
Boolean

if true, calling this method will not trigger a layout request on child

Returns

true if the child was added, false otherwise

Attributes

Remarks

Java documentation for android.view.ViewGroup.addViewInLayout(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