IAttributeSet IAttributeSet Interface

Definition

A collection of attributes, as found associated with a tag in an XML document.

[Android.Runtime.Register("android/util/AttributeSet", "", "Android.Util.IAttributeSetInvoker", ApiSince=1)]
public interface IAttributeSet : Android.Runtime.IJavaObject, IDisposable
type IAttributeSet = interface
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Properties

AttributeCount AttributeCount

Returns the number of attributes available in the set.

ClassAttribute ClassAttribute

Return the value of the "class" attribute or null if there is not one.

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IdAttribute IdAttribute

Return the value of the "id" attribute or null if there is not one.

PositionDescription PositionDescription

Returns a description of the current position of the attribute set.

StyleAttribute StyleAttribute

Return the value of the "style" attribute or 0 if there is not one.

Methods

GetAttributeBooleanValue(Int32, Boolean) GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

GetAttributeBooleanValue(String, String, Boolean) GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

GetAttributeFloatValue(Int32, Single) GetAttributeFloatValue(Int32, Single)

Return the float value of attribute at 'index'.

GetAttributeFloatValue(String, String, Single) GetAttributeFloatValue(String, String, Single)

Return the float value of 'attribute'.

GetAttributeIntValue(Int32, Int32) GetAttributeIntValue(Int32, Int32)

Return the integer value of attribute at 'index'.

GetAttributeIntValue(String, String, Int32) GetAttributeIntValue(String, String, Int32)

Return the integer value of 'attribute'.

GetAttributeListValue(Int32, String[], Int32) GetAttributeListValue(Int32, String[], Int32)

Return the index of the value of attribute at 'index' in the list 'options'.

GetAttributeListValue(String, String, String[], Int32) GetAttributeListValue(String, String, String[], Int32)

Return the index of the value of 'attribute' in the list 'options'.

GetAttributeName(Int32) GetAttributeName(Int32)

Returns the name of the specified attribute.

GetAttributeNameResource(Int32) GetAttributeNameResource(Int32)

Return the resource ID associated with the given attribute name.

GetAttributeResourceValue(Int32, Int32) GetAttributeResourceValue(Int32, Int32)

Return the value of attribute at 'index' as a resource identifier.

GetAttributeResourceValue(String, String, Int32) GetAttributeResourceValue(String, String, Int32)

Return the value of 'attribute' as a resource identifier.

GetAttributeUnsignedIntValue(Int32, Int32) GetAttributeUnsignedIntValue(Int32, Int32)

Return the integer value of attribute at 'index' that is formatted as an unsigned value.

GetAttributeUnsignedIntValue(String, String, Int32) GetAttributeUnsignedIntValue(String, String, Int32)

Return the boolean value of 'attribute' that is formatted as an unsigned value.

GetAttributeValue(Int32) GetAttributeValue(Int32)

Returns the value of the specified attribute as a string representation.

GetAttributeValue(String, String) GetAttributeValue(String, String)

Returns the value of the specified attribute as a string representation.

GetIdAttributeResourceValue(Int32) GetIdAttributeResourceValue(Int32)

Return the integer value of the "id" attribute or defaultValue if there is none.

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to