语言

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

此值不能为 null。

返回

此值不能为 null。

特性

注解

在此上下文的主题中检索带样式的属性信息。 有关详细信息,请参阅 android.content.res.Resources.Theme#obtainStyledAttributes(int[])。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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

此值可以为 null。

attrs
Int32[]

此值不能为 null。

返回

此值不能为 null。

特性

注解

在此上下文的主题中检索带样式的属性信息。 有关详细信息,请参阅 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int)。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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

此值不能为 null。

返回

此值不能为 null。

特性

例外

注解

在此上下文的主题中检索带样式的属性信息。 有关详细信息,请参阅 android.content.res.Resources.Theme#obtainStyledAttributes(int, int[])。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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

此值可以为 null。

attrs
Int32[]

此值不能为 null。

defStyleAttr
Int32

提供默认样式的主题属性。

defStyleRes
Int32

默认样式资源。

返回

此值不能为 null。

特性

注解

在此上下文的主题中检索带样式的属性信息。 有关详细信息,请参阅 android.content.res.Resources.Theme#obtainStyledAttributes(AttributeSet, int[], int, int)。

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

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于