Android.Views.IViewManager.AddView Method
Assign the passed LayoutParams to the passed View and add the view to the window.

Syntax

[Android.Runtime.Register("addView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V", "GetAddView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_Handler:Android.Views.IViewManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AddView (View view, ViewGroup.LayoutParams params)

Parameters

view
The view to be added to this window.
params
The LayoutParams to assign to view.

Remarks

Assign the passed LayoutParams to the passed View and add the view to the window.

Throws Android.Views.WindowManagerBadTokenException for certain programming errors, such as adding a second view to a window without removing the first view.

Throws Android.Views.WindowManagerInvalidDisplayException if the window is on a secondary Android.Views.Display and the specified display can't be found (see Android.App.Presentation).

[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