语言

Resources.GetAttributeSetSourceResId(IAttributeSet) 方法

定义

返回用于创建此 AttributeSet 的资源的资源 ID。

[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

参数

set
IAttributeSet

要为其查找源的 AttributeSet。

返回

支持给定 AttributeSet 的源的资源 ID,或者 Resources#ID_NULL AttributeSet 是 null。

特性

注解

返回用于创建此 AttributeSet 的资源的资源 ID。

Java文档android.content.res.Resources.getAttributeSetSourceResId(android.util.AttributeSet)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于