Reputation: 71
The TouchUtils class in the android documentation has functions like drag()
:
but they do not support multi touch gestures, like a two finger swipe.
Looking at the MotionEvent.obtain()
methods, there does not seem to be any way of invoking a "virtual" multi touch event from a testcase.
Anyone has got it working?
Upvotes: 5
Views: 448
Reputation: 71
Apparently there is no other way than to use the private function MotionEvent.obtainNano()
to mock the multi touch events. Hopefully this will change in future versions.
Upvotes: 2