Compartir a través de


View.ExplicitStyle Property

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.

public virtual int ExplicitStyle { [Android.Runtime.Register("getExplicitStyle", "()I", "GetGetExplicitStyleHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getExplicitStyle", "()I", "GetGetExplicitStyleHandler", ApiSince=29)>]
member this.ExplicitStyle : int

Property Value

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 View can have an explicit style specified in the layout file. This style is used first during the View attribute resolution, then if an attribute is not defined there the resource system looks at default style and theme as fallbacks.

<b>Note:</b> this method will only return actual values if the view attribute debugging is enabled in Android developer options.

Java documentation for android.view.View.getExplicitStyle().

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