Android.Views.LayoutInflater.CreateView Method
Low-level function for instantiating a view by name.

Syntax

[Android.Runtime.Register("createView", "(Ljava/lang/String;Ljava/lang/String;Landroid/util/AttributeSet;)Landroid/view/View;", "")]
public View CreateView (string name, string prefix, Android.Util.IAttributeSet attrs)

Parameters

name
The full name of the class to be instantiated.
prefix
Documentation for this section has not yet been entered.
attrs
The XML attributes supplied for this instance.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassNotFoundException
Android.Views.InflateException

Remarks

Low-level function for instantiating a view by name. This attempts to instantiate a view class of the given name found in this LayoutInflater's ClassLoader.

There are two things that can happen in an error case: either the exception describing the error will be thrown, or a null will be returned. You must deal with both possibilities -- the former will happen the first time createView() is called for a class of a particular name, the latter every time there-after for that class name.

[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