Drawable.CreateFromXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CreateFromXml(Resources, XmlReader) |
Create a drawable from an XML document. |
| CreateFromXml(Resources, XmlReader, Resources+Theme) |
Create a drawable from an XML document. |
CreateFromXml(Resources, XmlReader)
Create a drawable from an XML document.
[Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/graphics/drawable/Drawable;", "")]
public static Android.Graphics.Drawables.Drawable CreateFromXml(Android.Content.Res.Resources r, System.Xml.XmlReader parser);
[<Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/graphics/drawable/Drawable;", "")>]
static member CreateFromXml : Android.Content.Res.Resources * System.Xml.XmlReader -> Android.Graphics.Drawables.Drawable
Parameters
The resources used to load the drawable.
- parser
- XmlReader
The XML reader that supplies the drawable definition.
Returns
The drawable created from the XML document.
- Attributes
Exceptions
Remarks
Create a drawable from an XML document. For more information on how to create resources in XML, see Drawable Resources.
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
CreateFromXml(Resources, XmlReader, Resources+Theme)
Create a drawable from an XML document.
[Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;", "")]
public static Android.Graphics.Drawables.Drawable CreateFromXml(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Content.Res.Resources.Theme? theme);
[<Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;", "")>]
static member CreateFromXml : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Content.Res.Resources.Theme -> Android.Graphics.Drawables.Drawable
Parameters
The resources used to load the drawable.
- parser
- XmlReader
The XML reader that supplies the drawable definition.
- theme
- Resources.Theme
The optional theme used when creating the drawable.
Returns
The drawable created from the XML document.
- Attributes
Exceptions
Remarks
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.