Re: [android-developers] Re: A tricky but simple solution for who requires modal dialog

2011-06-06 Thread Qi Luo
...@gmail.com wrote: I can confirm Theme.Dialog works. I use it in my own app without any issue whatsoever. The background activity is still visible dimmed. On Jun 6, 12:55 pm, Qi Luo regcollect...@gmail.com wrote: On Mon, Jun 6, 2011 at 12:36 AM, Mark Murphy mmur...@commonsware.com wrote

Re: [android-developers] Re: A tricky but simple solution for who requires modal dialog

2011-06-05 Thread Qi Luo
I've tried this, but I didn't figure out how to build a real dialog-like and modal activity. Here's 2 issues I ran into, 1. I created a dialog-themed activity, but the background of it was always black, and the main activity under it was totally invisible. 2. activity could be started and expect

Re: [android-developers] Re: A tricky but simple solution for who requires modal dialog

2011-06-05 Thread Qi Luo
On Mon, Jun 6, 2011 at 12:36 AM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Jun 5, 2011 at 12:28 PM, Qi Luo regcollect...@gmail.com wrote: I've tried this, but I didn't figure out how to build a real dialog-like and modal activity. Here's 2 issues I ran into, 1. I created a dialog

Re: [android-developers] A tricky but simple solution for who requires modal dialog

2011-06-03 Thread Qi Luo
method signatures, of the internal message-handling logic. This may not be consistent across Android versions. Anyone using this is simply asking for trouble. On Thu, Jun 2, 2011 at 8:51 AM, Qi Luo regcollect...@gmail.com wrote: I saw much people wanted such a feature, me either. These days

[android-developers] A tricky but simple solution for who requires modal dialog

2011-06-02 Thread Qi Luo
I saw much people wanted such a feature, me either. These days I've google-ed around and tried serveral ways to get it right, finally ended up with following solution. No thread synchronization, no dialog-themed activities, really simple. Some useful resource and background,

Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Qi Luo
Check out my another 2 threads, I reflected Looper.loop() to run a nested thread, and it worked, a real modal dialog http://stackoverflow.com/questions/6184831/android-how-to-take-over-message-loop-of-activity-like-getmessage-postmessage-i

Re: [android-developers] Are dialogs supposed to be modal?

2011-06-01 Thread Qi Luo
Sorry for typo, not a nested thread, but a nested loop :D On Thu, Jun 2, 2011 at 10:36 AM, Qi Luo regcollect...@gmail.com wrote: Check out my another 2 threads, I reflected Looper.loop() to run a nested thread, and it worked, a real modal dialog http://stackoverflow.com/questions/6184831

[android-developers] ViewGroup, how to intercept MotionEvent and then dispatch to target or eat it on demand?

2011-05-08 Thread Qi Luo
Given that there is a ViewGroup with several children. As for this ViewGroup, I'd like to have it managing all MotionEvent for its all children, which says VG will 1. be able to intercept all events before they get dispatched to target (children) 2. VG will first consume the event, and determine