Android Guides | Samples

Android.Content.Res.Resources.ObtainAttributes Method

Retrieve a set of basic attribute values from an AttributeSet, not performing styling of them using a theme and/or style resources.

Syntax

[Android.Runtime.Register("obtainAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;", "GetObtainAttributes_Landroid_util_AttributeSet_arrayIHandler")]
public virtual TypedArray ObtainAttributes (IAttributeSet set, Int32[] attrs)

Parameters

set
The current attribute values to retrieve.
attrs
The specific attributes to be retrieved.

Remarks

Retrieve a set of basic attribute values from an AttributeSet, not performing styling of them using a theme and/or style resources.

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1