views:

16

answers:

0

In my XML layout if I set a view to have clickable="true" then the onClickListener registered to that view doesn't fire the onClick method. If I set the clickable property to "false" then it works fine.

Does setting the clickable property to "true" trap the on click events? Is there a way that I can make them propagate through?

The reason I need the clickable to be set "true" is that I have a selector assigned to the view's background which needs to change depending on the view's state (pressed, focused, etc).

Thanks.