I'm trying to get my app working properly in 2.3 (it works fine in 4.0+) and one issue I'm having is that on my listview I can't get the background on the selected item to change. I'm not sure what I need to change - does anyone know?
Here's the listview itself:
<ListView
android:id="@+id/score_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/keyboard"
android:layout_below="@+id/sort_header"
android:choiceMode="singleChoice"
android:divider="#CCCCCC"
android:dividerHeight="1dp"
android:listSelector="@drawable/selector" />
Here's the selector that works in 4.0+ (in 2.3 there is no color change):
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:drawable="@color/highlight"/>
<item android:state_pressed="true" android:drawable="@color/highlight"/>
<item android:state_activated="true" android:drawable="@color/highlight"/>
<item android:state_selected="true" android:drawable="@color/highlight"/>
</selector>
I actually don't need all 4 of those, but I wanted to try everything.