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。
傳回
支援給定屬性集的來源資源 ID,或 Resources#ID_NULL 是 屬性集是否為 null。
- 屬性
備註
回傳用於建立此 AttributeSet 的資源 ID。
Java 文件 android.content.res.Resources.getAttributeSetSourceResId(android.util.AttributeSet)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。