Share via


Drawable.Inflate Method

Definition

Overloads

Inflate(Resources, XmlReader, IAttributeSet)

Inflate this Drawable from an XML resource.

Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme)

Inflate this Drawable from an XML resource.

Inflate(Resources, XmlReader, IAttributeSet)

Inflate this Drawable from an XML resource.

[Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Handler")]
public virtual void Inflate (Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs);
[<Android.Runtime.Register("inflate", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)V", "GetInflate_Landroid_content_res_Resources_Lorg_xmlpull_v1_XmlPullParser_Landroid_util_AttributeSet_Handler")>]
abstract member Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> unit
override this.Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet -> unit

Parameters

parser
XmlReader
Attributes

Exceptions

Remarks

Inflate this Drawable from an XML resource. Does not apply a theme.

Java documentation for android.graphics.drawable.Drawable.inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet).

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.

See also

  • <xref:Android.Graphics.Drawables.Drawable.Inflate(Android.Content.Res.Resources%2c+System.Xml.XmlReader%2c+System.Xml.XmlReader%2c+System.Xml.XmlReader)>

Applies to

Inflate(Resources, XmlReader, IAttributeSet, Resources+Theme)

Inflate this Drawable from an XML resource.

[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 (Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Util.IAttributeSet attrs, Android.Content.Res.Resources.Theme? theme);
[<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")>]
abstract member Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet * Android.Content.Res.Resources.Theme -> unit
override this.Inflate : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Util.IAttributeSet * Android.Content.Res.Resources.Theme -> unit

Parameters

r
Resources

Resources used to resolve attribute values

parser
XmlReader

XML parser from which to inflate this Drawable

attrs
IAttributeSet

Base set of attribute values

theme
Resources.Theme

Theme to apply, may be null

Attributes

Exceptions

Remarks

Java documentation for android.graphics.drawable.Drawable.inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet).

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