語言

Context.ObtainStyledAttributes 方法

定義

多載

名稱 Description
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[]) 。

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

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

適用於

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

參數

set
IAttributeSet

此值可能是零值。

attrs
Int32[]

此值不可能是空值。

傳回

此值不可能是空值。

屬性

備註

在此上下文主題中檢索樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) 。

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

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

適用於

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[]) 。

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

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

適用於

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

參數

set
IAttributeSet

此值可能是零值。

attrs
Int32[]

此值不可能是空值。

defStyleAttr
Int32

提供預設風格的主題屬性。

defStyleRes
Int32

預設風格資源。

傳回

此值不可能是空值。

屬性

備註

在此上下文主題中檢索樣式屬性資訊。 如需相關資訊,請參閱 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int) 。

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

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

適用於