View.AttributeSourceResourceMap 属性

定义

返回属性资源 ID 到设置属性值的源资源 ID 的映射。

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>

属性值

将属性资源 ID 映射到设置了属性值的源资源 ID。

属性

注解

返回属性资源 ID 到设置属性值的源资源 ID 的映射。 源资源 ID 可以是布局资源 ID,如果值是在视图标记中的 XML 中设置的,则为样式资源 ID;如果属性在样式中设置,则为样式资源 ID。 源资源值将是其中一个资源 ID。#getAttributeSourceResourceMap()

<b>注意:</b> 此方法仅在 Android 开发人员选项中启用视图属性调试时返回实际值。

Java文档android.view.View.getAttributeSourceResourceMap()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于