Sdílet prostřednictvím


View.AttributeSourceResourceMap Property

Definition

Returns the mapping of attribute resource ID to source resource ID where the attribute value was set.

public virtual System.Collections.Generic.IDictionary<Java.Lang.Integer,Java.Lang.Integer> AttributeSourceResourceMap { [Android.Runtime.Register("getAttributeSourceResourceMap", "()Ljava/util/Map;", "GetGetAttributeSourceResourceMapHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getAttributeSourceResourceMap", "()Ljava/util/Map;", "GetGetAttributeSourceResourceMapHandler", ApiSince=29)>]
member this.AttributeSourceResourceMap : System.Collections.Generic.IDictionary<Java.Lang.Integer, Java.Lang.Integer>

Property Value

mapping of attribute resource ID to source resource ID where the attribute value was set.

Attributes

Remarks

Returns the mapping of attribute resource ID to source resource ID where the attribute value was set. Source resource ID can either be a layout resource ID, if the value was set in XML within the View tag, or a style resource ID, if the attribute was set in a style. The source resource value will be one of the resource IDs from #getAttributeSourceResourceMap().

<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.getAttributeSourceResourceMap().

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