IAttributeSet.GetAttributeBooleanValue Method

Definition

Overloads

GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

[Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue (int index, bool defaultValue);
[<Android.Runtime.Register("getAttributeBooleanValue", "(IZ)Z", "GetGetAttributeBooleanValue_IZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : int * bool -> bool

Parameters

index
Int32

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

defaultValue
Boolean

What to return if the attribute isn't found.

Returns

Resulting value.

Attributes

Remarks

Return the boolean value of attribute at 'index'.

Java documentation for android.util.AttributeSet.getAttributeBooleanValue(int, boolean).

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

GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

[Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool GetAttributeBooleanValue (string? namespace, string? attribute, bool defaultValue);
[<Android.Runtime.Register("getAttributeBooleanValue", "(Ljava/lang/String;Ljava/lang/String;Z)Z", "GetGetAttributeBooleanValue_Ljava_lang_String_Ljava_lang_String_ZHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAttributeBooleanValue : string * string * bool -> bool

Parameters

namespace
String

Namespace of attribute to retrieve.

attribute
String

The attribute to retrieve.

defaultValue
Boolean

What to return if the attribute isn't found.

Returns

Resulting value.

Attributes

Remarks

Return the boolean value of 'attribute'.

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

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