Android.Views.ViewGroup.AddView Method

Syntax

[Android.Runtime.Register("addView", "(Landroid/view/View;)V", "GetAddView_Landroid_view_View_Handler")]
public virtual void AddView (View child)

See Also

ViewGroup.GenerateDefaultLayoutParams

Parameters

child
the child view to add

Remarks

Adds a child view. If no layout parameters are already set on the child, the default parameters for this ViewGroup are set on the child.

Note: do not invoke this method from View.Draw(Android.Graphics.Canvas), View.OnDraw(Android.Graphics.Canvas), ViewGroup.dispatchDraw(android.graphics.Canvas) or any related method.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1