Drawable.CreateFromXmlAsync 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 |
|---|---|
| CreateFromXmlAsync(Resources, XmlReader) |
Runs CreateFromXml(Resources, XmlReader) in a task. |
| CreateFromXmlAsync(Resources, XmlReader, Resources+Theme) |
Runs CreateFromXml(Resources, XmlReader, Resources+Theme) in a task. |
CreateFromXmlAsync(Resources, XmlReader)
Runs CreateFromXml(Resources, XmlReader) in a task.
public static System.Threading.Tasks.Task<Android.Graphics.Drawables.Drawable> CreateFromXmlAsync(Android.Content.Res.Resources r, System.Xml.XmlReader parser);
static member CreateFromXmlAsync : Android.Content.Res.Resources * System.Xml.XmlReader -> System.Threading.Tasks.Task<Android.Graphics.Drawables.Drawable>
Parameters
The resources used to load the drawable.
- parser
- XmlReader
The XML reader that supplies the drawable definition.
Returns
A task whose result is the value returned by CreateFromXml(Resources, XmlReader).
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.
Applies to
CreateFromXmlAsync(Resources, XmlReader, Resources+Theme)
Runs CreateFromXml(Resources, XmlReader, Resources+Theme) in a task.
public static System.Threading.Tasks.Task<Android.Graphics.Drawables.Drawable> CreateFromXmlAsync(Android.Content.Res.Resources r, System.Xml.XmlReader parser, Android.Content.Res.Resources.Theme? theme);
static member CreateFromXmlAsync : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Content.Res.Resources.Theme -> System.Threading.Tasks.Task<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
A task whose result is the value returned by CreateFromXml(Resources, XmlReader, Resources+Theme).
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.