Friday, October 19, 2012

[android-developers] android:attr/activatedBackgroundIndicator isn't working

I'm using a ListView with the android.R.layout.simple_list_item_activated_1 style used on an ArrayAdapter for the TextView elements, similar to the List16.java example.

I'd like my ListView to have multi-selection, so I implemented MultiChoiceModeListener and set the CHOICE_MODE_MULTIPLE_MODAL. Long-pressing on an item correctly opens the CAB, however I have an issue with item selection - items in the lists don't visually change as they are selected/deselected in this mode.

As far as I understand, android:background="?android:attr/activatedBackgroundIndicator" is responsible for the background colour on the state change - and so this does not seem to be working.

I'm using ABS 4.2.0 in my app as well. Any ideas what could be wrong?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate