Afficher en anglais

Partage via


IAttributeSet.GetIdAttributeResourceValue(Int32) Method

Definition

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

C#
[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);

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

Produit Versions
.NET for Android .NET for Android API 34, .NET for Android API 35