I was expecting the getEdgeFlags() method of MotionEvent to tell me
when a MotionEvent had reached the edge of something, but the value
returned from getEdgeFlags() is *always* zero. Is this the expected
behavior? The documentation says that the flags indicate when a touch
has reached the edge of the display. I've tried this on a real device
and in the emulator, and the location coordinates never quite reach
the edge of the display, and getEdgeFlags() always returns 0. By
"never quite reach" I mean that if dragging a finger off the left edge
of the display, the smallest X I got was 2. Reaching the edge of the
view doesn't seem to change the value returned either.
I suppose I could set the flags myself using setEdgeFlags() using
calculations with known dimensions of the object whose edges I care
about. Is that how it's supposed to be used? Is this broken for now?
Thanks for your help.