Android.Views.LayoutInflater.Inflate Method
Inflate a new view hierarchy from the specified xml resource.

Syntax

[Android.Runtime.Register("inflate", "(ILandroid/view/ViewGroup;)Landroid/view/View;", "GetInflate_ILandroid_view_ViewGroup_Handler")]
public virtual View Inflate (int resource, ViewGroup root)

Parameters

resource
ID for an XML layout resource to load (e.g., R.layout.main_page)
root
Optional view to be the parent of the generated hierarchy.

Returns

Documentation for this section has not yet been entered.

Remarks

Inflate a new view hierarchy from the specified xml resource. Throws Android.Views.InflateException if there is an error.

[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