Android: Create a swipe gesture event programmatically -


i've been trying find answer specific case on google , amazingly couldn't find anywhere (there's answers detecting, not creating, swipes). want 'run' simulated swipe right left on screen (doesn't matter where, ideally right edge left). tried this, npe:

final float viewwidth = view.getwidth();     touchutils.drag(null,viewwidth,1f,0f,0f,1); 

the reason? need force swipe next page in infinite viewpager has no real reference page position (so can't use setcurrentitem).

any ideas?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -