View.AttributeSourceResourceMap 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳屬性資源 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 可以是 layout resource ID(如果該值是在 View 標籤中以 XML 設定),或是樣式資源 ID(如果屬性是以樣式設定)。 來源資源值將是來自 #getAttributeSourceResourceMap()的其中一個資源 ID 。
<b>注意:</b> 只有在 Android 開發者選項中啟用檢視屬性除錯時,此方法才會回傳實際值。
Java 文件 android.view.View.getAttributeSourceResourceMap()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。