On Fri, Dec 17, 2010 at 6:52 AM, blindfold <seeingwithso...@gmail.com> wrote: > Thanks Mark. I can easily detect touch events by their coordinates, > but not so easily identify what UI elements lie underneath - unless I > define and layout each of these UI elements graphically myself in > terms of screen coordinates.
Walk the widgets in the layout and figure out who is on the screen at your touch coordinates via getLocationOnScreen() (or maybe getLocationInWindow())? I'm probably being a bit simplistic, but I would think there should be some way to figure out what is underneath the touch coordinate. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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