Resources.Theme.GetAttributeResolutionStack(Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳在解析屬性值時所考慮的資源 ID 排序清單,並呼叫等價 #obtainStyledAttributes(AttributeSet, int[], int, int) 的 。
[Android.Runtime.Register("getAttributeResolutionStack", "(III)[I", "", ApiSince=29)]
public int[] GetAttributeResolutionStack(int defStyleAttr, int defStyleRes, int explicitStyleRes);
[<Android.Runtime.Register("getAttributeResolutionStack", "(III)[I", "", ApiSince=29)>]
member this.GetAttributeResolutionStack : int * int * int -> int[]
參數
- defStyleAttr
- Int32
目前主題中的一個屬性,包含對提供 TypedArray 預設值的樣式資源的參考。 可以是0,不用找預設值。
- defStyleRes
- Int32
一個樣式資源的資源識別碼,提供 TypedArray 的預設值,僅在 defStyleAttr 為 0 或無法在主題中找到時使用。 可以是0,不用找預設值。
- explicitStyleRes
- Int32
一個明確樣式資源的資源識別碼。
傳回
有序的資源 ID 清單,這些清單在解析屬性值時會考慮。
- 屬性
備註
回傳在解析屬性值時所考慮的資源 ID 排序清單,並呼叫等價 #obtainStyledAttributes(AttributeSet, int[], int, int) 的 。 該清單會包含一組明確的樣式(explicitStyleRes 且會包含預設樣式(defStyleAttr 和 defStyleRes)。
Java 文件 android.content.res.Resources.Theme.getAttributeResolutionStack(int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。