Resources.Theme.GetAttributeResolutionStack(Int32, Int32, Int32) Method

Definition

Returns the ordered list of resource ID that are considered when resolving attribute values when making an equivalent call to #obtainStyledAttributes(AttributeSet, int[], int, int) .

[Android.Runtime.Register("getAttributeResolutionStack", "(III)[I", "", ApiSince=29)]
public int[] GetAttributeResolutionStack (int defStyleAttr, int defStyleRes, int explicitStyleRes);
[<Android.Runtime.Register("getAttributeResolutionStack", "(III)[I", "", ApiSince=29)>]
member this.GetAttributeResolutionStack : int * int * int -> int[]

Parameters

defStyleAttr
Int32

An attribute in the current theme that contains a reference to a style resource that supplies defaults values for the TypedArray. Can be 0 to not look for defaults.

defStyleRes
Int32

A resource identifier of a style resource that supplies default values for the TypedArray, used only if defStyleAttr is 0 or can not be found in the theme. Can be 0 to not look for defaults.

explicitStyleRes
Int32

A resource identifier of an explicit style resource.

Returns

Int32[]

ordered list of resource ID that are considered when resolving attribute values.

Attributes

Remarks

Returns the ordered list of resource ID that are considered when resolving attribute values when making an equivalent call to #obtainStyledAttributes(AttributeSet, int[], int, int) . The list will include a set of explicit styles (explicitStyleRes and it will include the default styles (defStyleAttr and defStyleRes).

Java documentation for android.content.res.Resources.Theme.getAttributeResolutionStack(int, int, int).

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