共用方式為


Context.ObtainStyledAttributes 方法

定義

多載

ObtainStyledAttributes(Int32[])

擷取此內容主題中的樣式屬性資訊。

ObtainStyledAttributes(IAttributeSet, Int32[])

擷取此內容主題中的樣式屬性資訊。

ObtainStyledAttributes(Int32, Int32[])

擷取此內容主題中的樣式屬性資訊。

ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32)

擷取此內容主題中的樣式屬性資訊。

ObtainStyledAttributes(Int32[])

擷取此內容主題中的樣式屬性資訊。

[Android.Runtime.Register("obtainStyledAttributes", "([I)Landroid/content/res/TypedArray;", "")]
public Android.Content.Res.TypedArray ObtainStyledAttributes (int[] attrs);
[<Android.Runtime.Register("obtainStyledAttributes", "([I)Landroid/content/res/TypedArray;", "")>]
member this.ObtainStyledAttributes : int[] -> Android.Content.Res.TypedArray

參數

attrs
Int32[]

傳回

屬性

備註

擷取此內容主題中的樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(int[])

android.content.Context.obtainStyledAttributes(int[])Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

ObtainStyledAttributes(IAttributeSet, Int32[])

擷取此內容主題中的樣式屬性資訊。

[Android.Runtime.Register("obtainStyledAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;", "")]
public Android.Content.Res.TypedArray ObtainStyledAttributes (Android.Util.IAttributeSet? set, int[] attrs);
[<Android.Runtime.Register("obtainStyledAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;", "")>]
member this.ObtainStyledAttributes : Android.Util.IAttributeSet * int[] -> Android.Content.Res.TypedArray

參數

attrs
Int32[]

傳回

屬性

備註

擷取此內容主題中的樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int)

android.content.Context.obtainStyledAttributes(android.util.AttributeSet, int[])Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

ObtainStyledAttributes(Int32, Int32[])

擷取此內容主題中的樣式屬性資訊。

[Android.Runtime.Register("obtainStyledAttributes", "(I[I)Landroid/content/res/TypedArray;", "")]
public Android.Content.Res.TypedArray ObtainStyledAttributes (int resid, int[] attrs);
[<Android.Runtime.Register("obtainStyledAttributes", "(I[I)Landroid/content/res/TypedArray;", "")>]
member this.ObtainStyledAttributes : int * int[] -> Android.Content.Res.TypedArray

參數

resid
Int32
attrs
Int32[]

傳回

屬性

例外狀況

備註

擷取此內容主題中的樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(int, int[])

android.content.Context.obtainStyledAttributes(int, int[])Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32)

擷取此內容主題中的樣式屬性資訊。

[Android.Runtime.Register("obtainStyledAttributes", "(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;", "")]
public Android.Content.Res.TypedArray ObtainStyledAttributes (Android.Util.IAttributeSet? set, int[] attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register("obtainStyledAttributes", "(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;", "")>]
member this.ObtainStyledAttributes : Android.Util.IAttributeSet * int[] * int * int -> Android.Content.Res.TypedArray

參數

attrs
Int32[]
defStyleAttr
Int32
defStyleRes
Int32

傳回

屬性

備註

擷取此內容主題中的樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int)

android.content.Context.obtainStyledAttributes(android.util.AttributeSet, int[], int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於