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
Post a Comment