需要定义可绘制对象的 'drawable' 属性或子标记
Requires a 'drawable' attribute or child tag defining a drawable
我已经看过以前对此类问题的回答,但是 none 对我有用,所以我会继续 post 再说一遍。我的日志猫说:
" Binary XML file line #7: tag requires a 'drawable' attribute or child tag defining a drawable"
第 7 行我的 xml 是:<item ... <solid android:drawable="@color/hex"/> ... </item>
和:<item android:selected="true" android:drawable="@color/white" />
使用 argb 颜色代替:
<solid android:drawable="#006633"/>
使用这样的东西
<solid android:color="#00CCCCCC" />
经过大量的尝试和搜索,最终解雇了我的答案是:Selector on background color of TextView
我已经看过以前对此类问题的回答,但是 none 对我有用,所以我会继续 post 再说一遍。我的日志猫说:
" Binary XML file line #7: tag requires a 'drawable' attribute or child tag defining a drawable"
第 7 行我的 xml 是:<item ... <solid android:drawable="@color/hex"/> ... </item>
和:<item android:selected="true" android:drawable="@color/white" />
使用 argb 颜色代替:
<solid android:drawable="#006633"/>
使用这样的东西
<solid android:color="#00CCCCCC" />
经过大量的尝试和搜索,最终解雇了我的答案是:Selector on background color of TextView