Resources.GetAttributeSetSourceResId(IAttributeSet) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回用于创建此 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。