That should do the trick, thanks for your help!

On Apr 30, 4:24 pm, Jeff Sharkey <[email protected]> wrote:
> So Theme.Dialog Activities still receive onTouchEvent() calls, even
> outside of their floating window area.  If you can grab the exact
> window size, you could do the math to figure out if touches are
> outside the window.
>
> j
>
>
>
> On Thu, Apr 30, 2009 at 11:46 AM, UBZack <[email protected]> wrote:
>
> > Hi all,
>
> > I was wondering if anyone knew of an event listener that receives "tap
> > outside" events, that is, taps that happen outside the widget's
> > physical boundaries, and could this listener be assigned to a dialog
> > box (or for that matter, any visual window).  Here's what the code
> > MIGHT look like to construct a Dialog with this functionality:
>
> > AlertDialog.Builder(this)
> > .setTitle("My dialog")
> > .setMessage("This is my dialog")
> > .setOnOutsideClickListener(new MyOnClickListener()) // <- does
> > something like this exist?
> > .create();
>
> > Any help or insight anyone can give would be great.  I know that the
> > menu currently supports taps outside of its boundaries, so I think
> > this may be possible.
>
> > Thank you!
>
> > -UBZack
>
> --
> Jeff Sharkey
> [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to