1
我有這個簡單的資源繪製:機器人:ATTR/listDivider不是在插圖繪製公認繪製
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="?android:attr/listDivider"
android:insetLeft="88dp"
android:insetRight="16dp">
</inset>
這適用於Nexus 6的5.1還好,但對華爲U9200E與4.0.3我得到:
org.xmlpull.v1.XmlPullParserException: Binary XML file line #6: <inset> tag requires a 'drawable' attribute or child tag defining a drawable
我可以在其他屬性使用?android:attr/listDivider
,我可以設置其他可繪製作爲繪製的插圖我繪製,但這個組合不工作,很顯然,在一些設備中。
爲什麼?