Resources.Theme.ResolveAttribute(Int32, TypedValue, Boolean) Method

Definition

Retrieve the value of an attribute in the Theme.

[Android.Runtime.Register("resolveAttribute", "(ILandroid/util/TypedValue;Z)Z", "")]
public bool ResolveAttribute (int resid, Android.Util.TypedValue? outValue, bool resolveRefs);
[<Android.Runtime.Register("resolveAttribute", "(ILandroid/util/TypedValue;Z)Z", "")>]
member this.ResolveAttribute : int * Android.Util.TypedValue * bool -> bool

Parameters

resid
Int32

The resource identifier of the desired theme attribute.

outValue
TypedValue

Filled in with the ultimate resource value supplied by the attribute.

resolveRefs
Boolean

If true, resource references will be walked; if false, <var>outValue</var> may be a TYPE_REFERENCE. In either case, it will never be a TYPE_ATTRIBUTE.

Returns

boolean Returns true if the attribute was found and <var>outValue</var> is valid, else false.

Attributes

Remarks

Retrieve the value of an attribute in the Theme. The contents of <var>outValue</var> are ultimately filled in by Resources#getValue.

Java documentation for android.content.res.Resources.Theme.resolveAttribute(int, android.util.TypedValue, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to