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

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - JavaScript + Thymeleaf - select onchange -

node.js - Using Node without global install -