[android-developers] Re: Android “hover” event i n custom layout

2010-01-10 Thread k_day
I have been playing around with onInterceptTouchEvent, but I still cannot figure out how to accomplish this. If I intercept the touch event in my layout, the imageView that currently was handling the touch will be sent an action_cancel. However, as I continue to move over another imageView, I can

[android-developers] Re: Android “hover” event i n custom layout

2010-01-07 Thread Romain Guy (Google)
The way to do it is to have the parent of your ImageView use onInterceptTouchEvent(). On Dec 26 2009, 8:06 pm, k_day wrote: > I have a custom layout that I have written that basically just > displays a bunch of ImageViews. I am handing onTouch events for all > the ImageViews in my layout. However

[android-developers] Re: Android “hover” event i n custom layout

2010-01-06 Thread k_day
I still really need help with this. I just tried detecting in the imageView's on touch even if the finger is currently outside of the imageView, and if so, calling clear focus. However, it appears that once I clear focus from one view, dragging it over another will not give that view focus. Can

[android-developers] Re: Android “hover” event i n custom layout

2009-12-29 Thread k_day
I suppose one way to do this is to capture touch events at the layout level, and then loop through all the layouts to see if an imageview is under that point, though that sounds inefficient. Is there any better way to find which view is at a given point? Also, is it true that any touch event on a