語言

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。

傳回

支援給定屬性集的來源資源 ID,或 Resources#ID_NULL 是 屬性集是否為 null。

屬性

備註

回傳用於建立此 AttributeSet 的資源 ID。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於