State_activated before API 11


I am trying to add action bar support to pre honeycomb devices by using the v7 AppCompat library’s new ActionBarActivity class. However, the only problem I have left to solve is that on my 2.3.3 avd, state_activated doesn’t work. So when I select multiple items from the list view, they don’t have a different background color. How can I address this issue?


To get it working in 2.3.3, I added the following to my getView override:

if (listView.isItemChecked(position)) { convertView.setBackgroundColor(Color.LTGRAY); }