ColorStateList.CreateFromXml Method

Definition

Overloads

CreateFromXml(Resources, XmlReader)

Creates a ColorStateList from an XML document.

CreateFromXml(Resources, XmlReader, Resources+Theme)

Creates a ColorStateList from an XML document.

CreateFromXml(Resources, XmlReader)

Creates a ColorStateList from an XML document.

[Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/content/res/ColorStateList;", "")]
public static Android.Content.Res.ColorStateList CreateFromXml (Android.Content.Res.Resources? r, System.Xml.XmlReader? parser);
[<Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;)Landroid/content/res/ColorStateList;", "")>]
static member CreateFromXml : Android.Content.Res.Resources * System.Xml.XmlReader -> Android.Content.Res.ColorStateList

Parameters

r
Resources

Resources against which the ColorStateList should be inflated.

parser
XmlReader

Parser for the XML document defining the ColorStateList.

Returns

A new color state list.

Attributes

Exceptions

Remarks

Creates a ColorStateList from an XML document.

This member is deprecated. Use #createFromXml(Resources, XmlPullParser parser, Theme)

Java documentation for android.content.res.ColorStateList.createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser).

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)

Creates a ColorStateList from an XML document.

[Android.Runtime.Register("createFromXml", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList;", "", ApiSince=23)]
public static Android.Content.Res.ColorStateList 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/content/res/ColorStateList;", "", ApiSince=23)>]
static member CreateFromXml : Android.Content.Res.Resources * System.Xml.XmlReader * Android.Content.Res.Resources.Theme -> Android.Content.Res.ColorStateList

Parameters

r
Resources

Resources against which the ColorStateList should be inflated.

parser
XmlReader

Parser for the XML document defining the ColorStateList.

Returns

A new color state list.

Attributes

Remarks

Java documentation for android.content.res.ColorStateList.createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser).

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