> I've never tried to do an overlay view, but it seems to me to make sense
> that once the overlay view is on top that it would capture all events...

Is there a better way to accomplish the same effect that I'm not
thinking of? An additional consideration is that I'm intending to use
that same overlay view on multiple base views...

> If you want it to propogate to the base view I think you are going to have
> to handle it in the overlay and then pass it on to the base view somehow.
> Not entirely sure how to do that, but that seems the most logical approach
> to me.

So I tried this by calling the dispatchTouchEvent on the base view
from the overlay. From there one can compare the coordinates of the
MotionEvent to the Rect of the clickable object in questions and then
call performClick on the button. This seems like a hack, but it works.
* If there were more buttons it would be a hassle
* The buttons don't actually respond as though they're clicked - I'm
wondering if it's possible to make this happen programmatically...

Thanks for the response,
-Chris

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to