Android Guides | Samples

Android.Graphics.Drawables.Drawable.Inflate Method

Inflate this Drawable from an XML resource optionally styled by a theme.

Syntax

[Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Landroid_content_res_Resources_Theme_Handler")]
public virtual Void Inflate (Resources r, XmlReader parser, IAttributeSet attrs, Resources+Theme theme)

Parameters

r
Resources used to resolve attribute values
parser
XML parser from which to inflate this Drawable
attrs
Base set of attribute values
theme
Theme to apply, may be null

Exceptions

TypeReason
!:NoType:XmlPullParserException
IOException
XmlPullParserException

Remarks

Inflate this Drawable from an XML resource optionally styled by a theme.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1