Udostępnij za pośrednictwem


IViewManager.AddView(View, ViewGroup+LayoutParams) Method

Definition

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

[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 (Android.Views.View? view, Android.Views.ViewGroup.LayoutParams? params);
[<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")>]
abstract member AddView : Android.Views.View * Android.Views.ViewGroup.LayoutParams -> unit

Parameters

view
View

The view to be added to this window.

params
ViewGroup.LayoutParams

The LayoutParams to assign to view.

Attributes

Remarks

Java documentation for android.view.ViewManager.addView(android.view.View, 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