ViewGroup.AddView ViewGroup.AddView Method

Definition

Overloads

AddView(View) AddView(View)
AddView(View, ViewGroup+LayoutParams) AddView(View, ViewGroup+LayoutParams)

Adds a child view with the specified layout parameters.

AddView(View, Int32) AddView(View, Int32)

Adds a child view.

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

Adds a child view with the specified layout parameters.

AddView(View, Int32, Int32) AddView(View, Int32, Int32)

Adds a child view with this ViewGroup's default layout parameters and the specified width and height.

AddView(View) AddView(View)

[Android.Runtime.Register("addView", "(Landroid/view/View;)V", "GetAddView_Landroid_view_View_Handler")]
public virtual void AddView (Android.Views.View child);
abstract member AddView : Android.Views.View -> unit
override this.AddView : Android.Views.View -> unit

Parameters

child
View View

the child view to add

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.

See also

AddView(View, ViewGroup+LayoutParams) AddView(View, ViewGroup+LayoutParams)

Adds a child view with the specified layout parameters.

[Android.Runtime.Register("addView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V", "GetAddView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_Handler")]
public virtual void AddView (Android.Views.View child, Android.Views.ViewGroup.LayoutParams params);
abstract member AddView : Android.Views.View * Android.Views.ViewGroup.LayoutParams -> unit
override this.AddView : Android.Views.View * Android.Views.ViewGroup.LayoutParams -> unit

Parameters

child
View View

the child view to add

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

the layout parameters to set on the child

Implements

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.

AddView(View, Int32) AddView(View, Int32)

Adds a child view.

[Android.Runtime.Register("addView", "(Landroid/view/View;I)V", "GetAddView_Landroid_view_View_IHandler")]
public virtual void AddView (Android.Views.View child, int index);
abstract member AddView : Android.Views.View * int -> unit
override this.AddView : Android.Views.View * int -> unit

Parameters

child
View View

the child view to add

index
Int32 Int32

the position at which to add 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.

See also

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

Adds a child view with the specified layout parameters.

[Android.Runtime.Register("addView", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V", "GetAddView_Landroid_view_View_ILandroid_view_ViewGroup_LayoutParams_Handler")]
public virtual void AddView (Android.Views.View child, int index, Android.Views.ViewGroup.LayoutParams params);
abstract member AddView : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> unit
override this.AddView : Android.Views.View * int * Android.Views.ViewGroup.LayoutParams -> unit

Parameters

child
View View

the child view to add

index
Int32 Int32

the position at which to add the child or -1 to add last

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

the layout parameters to set on 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.

AddView(View, Int32, Int32) AddView(View, Int32, Int32)

Adds a child view with this ViewGroup's default layout parameters and the specified width and height.

[Android.Runtime.Register("addView", "(Landroid/view/View;II)V", "GetAddView_Landroid_view_View_IIHandler")]
public virtual void AddView (Android.Views.View child, int width, int height);
abstract member AddView : Android.Views.View * int * int -> unit
override this.AddView : Android.Views.View * int * int -> unit

Parameters

child
View View

the child view to add

width
Int32 Int32
height
Int32 Int32

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