語言

Resources.Theme.GetExplicitStyle(IAttributeSet) 方法

定義

回傳該樣式的資源 ID,並以 style="..."AttributeSet的後盾 XML 元素表示,若 Resources#ID_NULL 未指定或不適用則以其他方式顯示。

[Android.Runtime.Register("getExplicitStyle", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)]
public int GetExplicitStyle(Android.Util.IAttributeSet? set);
[<Android.Runtime.Register("getExplicitStyle", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)>]
member this.GetExplicitStyle : Android.Util.IAttributeSet -> int

參數

set
IAttributeSet

屬性值的基礎集合。

傳回

該樣式的資源 ID 則在 style="..."AttributeSet的後方 XML 元素中指定,若 Resources#ID_NULL 未指定或不適用,則為其他方式。

屬性

備註

回傳該樣式的資源 ID,並以 style="..."AttributeSet的後盾 XML 元素表示,若 Resources#ID_NULL 未指定或不適用則以其他方式顯示。

每個 android.view.View Layout 都可以在版面檔案中指定明確的樣式。 此樣式首先用於 android.view.View 屬性解析,若屬性未定義,資源系統會將預設樣式與主題視為備用。

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

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

適用於