新手求助 关于selector 的XML文件报错
今天跟着视频写代码,在drawable中新建xml文件选择了selector ,结果还是错了
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/gray_bg"android:state_pressed="true" />(这句报错)
<item android:drawable="@drawable/white_bg" />
</selector>
报错内容:Element type "item" must be followed by either attribute specifications, ">" or "/>"