Android Compound Control internal click events

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-03-25T20:37:32Z Indexed on 2010/03/27 19:53 UTC
Read the original article Hit count: 557

Filed under:

Hi, I'm writing a custom compound control that extends RelativeLayout. Inside this component, there is an ImageView. I add a OnClickListener to this ImageView to animate it when the user clicks on it. But when I am in an activity using this control and I add a OnClickListener on the control, this listener is never called. It only works when I remove the other listener I have on the ImageView. Does anybody knows how to "propagate" the event to the other listeners when I catch it inside the control?

Thanks!

PS: I would also like to know if there is an existing control that looks like the icons on the Android desktop. Like an icon with text underneath.

© Stack Overflow or respective owner

Related posts about android