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 <zferv...@gmail.com> 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
jshar...@google.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to