I have looked at numerous SO questions and cannot figure this out. I have managed to use a selector to change the hilighting color of my ListView -but how do I set the normal (non-pressed) background colour?
The below XML doesn't work as is only changes my row item background to black once the item has been pressed. How should I be doing this?
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:exitFadeDuration="@android:integer/config_mediumAnimTime">
<item android:state_focused="true" android:drawable="@color/row_hilight"/>
<item android:state_pressed="true" android:drawable="@color/row_hilight"/>
<item android:state_pressed="false" android:drawable="@color/black"/>
</selector>