Error : <item> tag requires a 'drawable' attribute or child tag defining a drawable
问题 I created a state-list selector file item_bg_selector.xml in the drawable folder like this : <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true" android:drawable="@drawable/item_background_selected" /> <item android:state_focused="true" android:drawable="@drawable/item_background_selected" /> <item android:state_pressed="true" android:drawable="@drawable/item_background_selected" /> <item android:drawable="@android:color/transparent"/> <