Udostępnij za pośrednictwem


IAttributeSet.GetAttributeValue Method

Definition

Overloads

GetAttributeValue(Int32)

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

GetAttributeValue(String, String)

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

GetAttributeValue(Int32)

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

[Android.Runtime.Register("getAttributeValue", "(I)Ljava/lang/String;", "GetGetAttributeValue_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetAttributeValue (int index);
[<Android.Runtime.Register("getAttributeValue", "(I)Ljava/lang/String;", "GetGetAttributeValue_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeValue : int -> string

Parameters

index
Int32

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

Returns

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

Attributes

Remarks

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

Java documentation for android.util.AttributeSet.getAttributeValue(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

GetAttributeValue(String, String)

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

[Android.Runtime.Register("getAttributeValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetAttributeValue_Ljava_lang_String_Ljava_lang_String_Handler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetAttributeValue (string? namespace, string? name);
[<Android.Runtime.Register("getAttributeValue", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetAttributeValue_Ljava_lang_String_Ljava_lang_String_Handler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeValue : string * string -> string

Parameters

namespace
String

The namespace of the attribute to get the value from.

name
String

The name of the attribute to get the value from.

Returns

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

Attributes

Remarks

Returns the value of the specified attribute as a string representation. The lookup is performed using the attribute name.

Java documentation for android.util.AttributeSet.getAttributeValue(java.lang.String, java.lang.String).

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