Resources.Theme.GetExplicitStyle(IAttributeSet) Method

Definition

Returns the resource ID for the style specified using style="..." in the AttributeSet's backing XML element or Resources#ID_NULL otherwise if not specified or otherwise not applicable.

[Android.Runtime.Register("getExplicitStyle", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)]
public int GetExplicitStyle (Android.Util.IAttributeSet? set);
[<Android.Runtime.Register("getExplicitStyle", "(Landroid/util/AttributeSet;)I", "", ApiSince=29)>]
member this.GetExplicitStyle : Android.Util.IAttributeSet -> int

Parameters

set
IAttributeSet

The base set of attribute values.

Returns

The resource ID for the style specified using style="..." in the AttributeSet's backing XML element or Resources#ID_NULL otherwise if not specified or otherwise not applicable.

Attributes

Remarks

Returns the resource ID for the style specified using style="..." in the AttributeSet's backing XML element or Resources#ID_NULL otherwise if not specified or otherwise not applicable.

Each android.view.View can have an explicit style specified in the layout file. This style is used first during the android.view.View attribute resolution, then if an attribute is not defined there the resource system looks at default style and theme as fallbacks.

Java documentation for android.content.res.Resources.Theme.getExplicitStyle(android.util.AttributeSet).

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