Re: [android-developers] Looking up a View inside a ViewGroup via coordinates

2011-01-10 Thread Kostya Vasilyev
Abdull, Take a look at the source for ViewGroup.dispatchTouchEvent. http://www.netmite.com/android/mydroid/frameworks/base/core/java/android/view/ViewGroup.java It has code to hit-test children, and it's only a few lines of code. ( provided you can't set click listeners on individual views, wh

[android-developers] Looking up a View inside a ViewGroup via coordinates

2011-01-10 Thread Abdull
I have a ViewGroup (for instance, a RelativeLayout). This ViewGroup is populated with several Views (for instance, a few Buttons). Given a Point relative to the ViewGroup's coordinate system, I would like to look up the View which is located at this Point. That is, I'm looking for a public method w