Android Guides | Samples

Android.Graphics.Drawables.Drawable.CreateFromXml Method

Create a drawable from an XML document.

Syntax

[Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/graphics/drawable/Drawable;", "")]
public static Drawable CreateFromXml (Resources r, XmlReader parser)

Parameters

r
parser

Exceptions

TypeReason
XmlPullParserException
IOException

Remarks

Create a drawable from an XML document. For more information on how to create resources in XML, see Drawable Resources.

[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