Partager via


IAttributeSet.GetIdAttributeResourceValue(Int32) Method

Definition

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

[Android.Runtime.Register("getIdAttributeResourceValue", "(I)I", "GetGetIdAttributeResourceValue_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetIdAttributeResourceValue (int defaultValue);
[<Android.Runtime.Register("getIdAttributeResourceValue", "(I)I", "GetGetIdAttributeResourceValue_IHandler:Android.Util.IAttributeSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetIdAttributeResourceValue : int -> int

Parameters

defaultValue
Int32

What to return if the "id" attribute isn't found.

Returns

int Resulting value.

Attributes

Remarks

Return the integer value of the "id" attribute or defaultValue if there is none. Equivalent to getAttributeResourceValue(null, "id", defaultValue);

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