Udostępnij za pośrednictwem


IAttributeSet.GetAttributeListValue Method

Definition

Overloads

GetAttributeListValue(Int32, String[], Int32)

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

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

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

GetAttributeListValue(Int32, String[], Int32)

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

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

Parameters

index
Int32

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

options
String[]

List of strings whose values we are checking against.

defaultValue
Int32

Value returned if attribute doesn't exist or no match is found.

Returns

Index in to 'options' or defaultValue.

Attributes

Remarks

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

Java documentation for android.util.AttributeSet.getAttributeListValue(int, java.lang.String[], 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

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

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

[Android.Runtime.Register("getAttributeListValue", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;I)I", "GetGetAttributeListValue_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetAttributeListValue (string? namespace, string? attribute, string[]? options, int defaultValue);
[<Android.Runtime.Register("getAttributeListValue", "(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;I)I", "GetGetAttributeListValue_Ljava_lang_String_Ljava_lang_String_arrayLjava_lang_String_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeListValue : string * string * string[] * int -> int

Parameters

namespace
String

Namespace of attribute to retrieve.

attribute
String

Name of attribute to retrieve.

options
String[]

List of strings whose values we are checking against.

defaultValue
Int32

Value returned if attribute doesn't exist or no match is found.

Returns

Index in to 'options' or defaultValue.

Attributes

Remarks

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

Java documentation for android.util.AttributeSet.getAttributeListValue(java.lang.String, java.lang.String, java.lang.String[], 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