Android Guides | Samples

Android.Graphics.Drawables.Drawable.CreateFromXml Method

Syntax

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

Parameters

r
parser
theme

Exceptions

TypeReason
XmlPullParserException
IOException

Remarks

Create a drawable from an XML document using an optional NoType:android/content/res/Resources$Theme;Href=../../../../reference/android/content/res/Resources.Theme.html. 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