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

Syntax

[Android.Runtime.Register("inflate", "(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;)Landroid/view/View;", "GetInflate_Lorg_xmlpull_v1_XmlPullParser_Landroid_view_ViewGroup_Handler")]
public virtual View Inflate (System.Xml.XmlReader parser, ViewGroup root)

Parameters

parser
XML dom node containing the description of the view hierarchy.
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 node. Throws Android.Views.InflateException if there is an error. *

Important   For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime.

[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