IAttributeSet.GetAttributeNamespace(Int32) Method

Definition

Returns the namespace of the specified attribute.

[Android.Runtime.Register("getAttributeNamespace", "(I)Ljava/lang/String;", "GetGetAttributeNamespace_IHandler:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]
public virtual string? GetAttributeNamespace (int index);
[<Android.Runtime.Register("getAttributeNamespace", "(I)Ljava/lang/String;", "GetGetAttributeNamespace_IHandler:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]
abstract member GetAttributeNamespace : int -> string
override this.GetAttributeNamespace : int -> string

Parameters

index
Int32

Index of the desired attribute, 0...count-1.

Returns

A String containing the namespace of the attribute, or null if th attribute cannot be found.

Attributes

Remarks

Returns the namespace of the specified attribute.

See also XmlPullParser#getAttributeNamespace XmlPullParser.getAttributeNamespace(), which this method corresponds to when parsing a compiled XML file.

Java documentation for android.util.AttributeSet.getAttributeNamespace(int).

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