Android.Util.IAttributeSet.GetAttributeNameResource Method
Return the resource ID associated with the given attribute name.

Syntax

[Android.Runtime.Register("getAttributeNameResource", "(I)I", "GetGetAttributeNameResource_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeNameResource (int index)

Parameters

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

Returns

Documentation for this section has not yet been entered.

Remarks

Return the resource ID associated with the given attribute name. This will be the identifier for an attribute resource, which can be used by styles. Returns 0 if there is no resource associated with this attribute.

Note that this is different than IAttributeSet.GetAttributeResourceValue(int, System.Int32) in that it returns a resource identifier for the attribute name; the other method returns this attribute's value as a resource identifier.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1