Question

I'm working on an Android application with ListView/GridView.

Since I set an onClickListener on the convertView (The view I return in the getView() method of my Adapter), the cell's background doesn't shine anymore when pressed. I know I can set my own drawable (with a specific pressed state) in my xml layout file (with value 'background') but I'd like to keep the original one (like when no onClickListener is set).

Can somebody tell me how I can keep the original background (with pressed state, ...)?

Thank you

PS: Sorry for my poor English, I'm French

Was it helpful?

Solution

If its an Adapter view, why don't you add OnItemClickListener ?.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top