Resources.ObtainAttributes(IAttributeSet, Int32[]) Método

Definición

Recupere un conjunto de valores de atributo básicos de attributeSet, no realizando estilos de ellos mediante un tema o recursos de estilo.

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

Parámetros

set
IAttributeSet

Valores de atributo actuales que se van a recuperar.

attrs
Int32[]

Atributos específicos que se van a recuperar. Estos identificadores de atributo deben ordenarse en orden ascendente.

Devoluciones

Devuelve un TypedArray que contiene una matriz de los valores de atributo. Asegúrese de llamar TypedArray#recycle() TypedArray.recycle() a cuando haya terminado con él.

Atributos

Comentarios

Recupere un conjunto de valores de atributo básicos de attributeSet, no realizando estilos de ellos mediante un tema o recursos de estilo.

Java documentación para android.content.res.Resources.obtainAttributes(android.util.AttributeSet, int[]).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a