views:

33

answers:

1

I have the android:cacheColorHint="#00000000" set on my ListView, which fixed this issue in one of my other lists in another activity, but it's not helping in this other list. I'm using the Light theme in my app, if that matters. I can't figure out what's going on. Long press brings up the context menu just fine, I just don't get the nice highlight of the row while pressing it.

Any ideas?

A: 

If you have manually set the backgroundColor of your list view item View, it will not work. (Unless you make your background a State enabled Drawable).

The reason it works by default is that the background is a state drawable that listens for the pressed, selected, etc... states. By setting the background to a solid colour, you get rid of that functionality.

Moncader
You're talking about the layout for the row right? I haven't set the background color anywhere in the layout. Still scratching my head...
Scienceprodigy