They work the same. > I have a class inherited from RelativeLayout and override public > boolean dispatchTouchEvent(MotionEvent event) method. After I touch & > hold on the touch screen, in emulator I got MotionEvent.ACTION_DOWN > event only. But in G1, I got MotionEvent.ACTION_DOWN first and then > MotionEvent.ACTION_MOVE continuously, even if I try my best to hold > still my finger tip.
That's simply because you cannot hold your finger still. With a mouse cursor you have a 1px precision, with a finger, it's a lot more. The way to "work around" this is simply to use thresholds when you try to detect motion. For instance in a ScrollView or ListView a scroll happens only if the finger has moved by 16 pixels or more. You can use the same values as the framework by looking at the ViewConfiguration class. -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

