I kept getting 0 from event.getHistorySize() even when the event is MotionEvent.ACTION_MOVE.
However, it's not always zero. It adds one point count in like 10 ACTION_MOVE events. Can anyone please help?
I am not sure about this, but I have been troubled by the same problem. What I believe is that the MotionEvent history contains the events which have not been reported individually to the onTouchEvent. This is also supported by the Android Documentation (http://developer.android.com/reference/android/view/MotionEvent.html) under "Batching".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With