You can add the onClickListener to the parent layout

On Jan 26, 12:34 am, kknight <[email protected]> wrote:
> I have a layout which contains five TextView. When user clicks any of
> the five TextView, it will do the same thing: open another activity.
> So, the OnClickerListener behavior to the five TextView is the same.
> Is it possible that I only add OnClickListerner to one view, e.g. to
> layout, so I don't have to add OnClickListerner to each of the five
> TextView? Put it another way, if none of the children components
> receives CLICK event, will the CLICK event passed through to their
> parent, the layout?

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

Reply via email to