Hello everyone,

I have a customized Dialog whose size does not fill the screen. I have also 
enabled the following flags for the dialog's window.
1. WindowManager.LayoutParams.TYPE_APPLICAITON_ATTACHED_DIALOG
2. WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
3. WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
4. WindowManager.LayoutParams.FLAG_ WATCH_OUTSIDE_TOUCH

In addition, I overridden onTouchEvent(MotionEvent event) method so that I 
can process the event whenever a touch outside of the dialog's window 
occurs.
As a result, I can move my dialog at any point outside its window.

Here's my problem. This expected behavior works fine in the emulator (using 
Gingerbread code and build btw) and it also works fine with my Samsung 
Galaxy S2 (Gingerbread build).
But when I tried to run this app on my friends machine (runs on ICS), 
event.x and event.y for ACTION_OUTSIDE will always return 0.
Does anyone know the reason for this? Has event handling in ICS been 
changed for ACTION_OUTSIDE?

Hoping to hear from you guys, thanks and best regards,
- tsukishiro

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