Re: [android-developers] viewgroup and view

2011-02-02 Thread TreKing
On Tue, Feb 1, 2011 at 7:41 AM, blackbelt emanuel...@gmail.com wrote:

 My question is.. if I want to know wich view has been touched what i need
 to do? Could please provide me some information or example?


OnTouchListener takes the view that was touched as the first parameter.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] viewgroup and view

2011-02-01 Thread blackbelt
Hello there, 

I ve the following scenario. I ve a viewgroup and two views (one draws a 
rectshape, an ovalshape the other). The viewgroup and the two views 
implements the OnTouchListener interface. But when a touch on a view, both 
the Viewgroup.onTouch(..) and the RectView.onTouch() and the 
OvalView.onTouc() have been called. My question is.. if I want to know wich 
view has been touched what i need to do? Could please provide me some 
information or example?

Thanks in advance,

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