ViewGroup.AddViewInLayout ViewGroup.AddViewInLayout Method

Definition

Overloads

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

Adds a view during layout.

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

Adds a view during layout.

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

the view to add to the group

index
Int32 Int32

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

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

the layout parameters to associate with the child

Returns

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.

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

the view to add to the group

index
Int32 Int32

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

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

the layout parameters to associate with the child

preventRequestLayout
Boolean Boolean

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

Returns

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