android - How to override a View's touch methods to make them listen continously -


i have webview, want swiping on should click underneath it. mean clicking (down) on 100,100 coordinates, , swiping way through coordinates 200,200 , clicking up.

i want every pixel 101,101; 102,102...199,199 clicked when it.

for purpose wrote own class extending webview, still, can't see difference @ all.

public class mywebview extends webview{      public mywebview(context context, attributeset attrs) {         super(context, attrs);         // todo auto-generated constructor stub     }       @override     public boolean ontouchevent(motionevent event) {         // todo auto-generated method stub         super.ontouchevent(event);         return true;     }       @override     public boolean dispatchtouchevent(motionevent ev) {         // todo auto-generated method stub         super.dispatchtouchevent(ev);         return true;     }  } 

if webview viewgroup (which believe is, wrong) can use viewgroups onintercepttouchevent class this. though not know how implement in particular case, should in right direction.

how intercept touch events viewpager.onpagechangelistener


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -