Man... I can't believe I didn't see this before! :) Thank you! -Zack
On May 2, 8:59 am, Jason Parekh <[email protected]> wrote: > If you want your dialog to cancel when the user taps outside its area, > check out Dialog.setCanceledOnTouchOutside. > > jason > > On Thu, Apr 30, 2009 at 2:46 PM, 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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

