다음을 통해 공유


Xml.AsAttributeSet(XmlReader) Method

Definition

Return an AttributeSet interface for use with the given XmlPullParser.

[Android.Runtime.Register("asAttributeSet", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;", "")]
public static Android.Util.IAttributeSet? AsAttributeSet (System.Xml.XmlReader? parser);
[<Android.Runtime.Register("asAttributeSet", "(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet;", "")>]
static member AsAttributeSet : System.Xml.XmlReader -> Android.Util.IAttributeSet

Parameters

parser
XmlReader

The existing parser for which you would like an AttributeSet.

Returns

An AttributeSet you can use to retrieve the attribute values at each of the tags as the parser moves through its XML document.

Attributes

Remarks

Return an AttributeSet interface for use with the given XmlPullParser. If the given parser itself implements AttributeSet, that implementation is simply returned. Otherwise a wrapper class is instantiated on top of the XmlPullParser, as a proxy for retrieving its attributes, and returned to you.

Java documentation for android.util.Xml.asAttributeSet(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

See also