I find that in android.test.TouchUtils there is a drag method, I try it, but onfling() seems not react to this action. I also try robotium’s scrollToSide(int), not working either. Any suggestions that how I can achieve this in my test case?
I find that in android.test.TouchUtils there is a drag method, I try it, but
Share
I believe you could use
MotionEventclass and it’sobtain()method to simulate all kinds of swipe/touch gestures. Here’s the first tutorial I found on this, it should get you started: http://softteco.blogspot.com/2011/02/touch-hold-swipe-release-gesture.html