Dela via


Resources.GetAttributeSetSourceResId(IAttributeSet) Method

Definition

Returns the resource ID of the resource that was used to create this AttributeSet.

[Android.Runtime.Register("getAttributeSetSourceResId", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)]
public static int GetAttributeSetSourceResId (Android.Util.IAttributeSet? set);
[<Android.Runtime.Register("getAttributeSetSourceResId", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)>]
static member GetAttributeSetSourceResId : Android.Util.IAttributeSet -> int

Parameters

set
IAttributeSet

AttributeSet for which we want to find the source.

Returns

The resource ID for the source that is backing the given AttributeSet or Resources#ID_NULL if the AttributeSet is null.

Attributes

Remarks

Returns the resource ID of the resource that was used to create this AttributeSet.

Java documentation for android.content.res.Resources.getAttributeSetSourceResId(android.util.AttributeSet).

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