Swipe Detection in Android app


Don't forget to subscribe my channel.

Copy code here:
linear1.setOnTouchListener(new View.OnTouchListener()\n{@Override\n public boolean onTouch(View myview, MotionEvent myme){ \nswitch(myme.getAction()) { \ncase MotionEvent.ACTION_DOWN: {x1 \u003d myme.getX();\ny1 \u003d myme.getY();};\nbreak; \ncase MotionEvent.ACTION_UP: {x2 \u003d myme.getX();\ny2 \u003d myme.getY();\n_swipedetection ();};\nbreak;\n}\nreturn true;}});

Comments

  1. Please sent your es-file explorer.
    becaise my es file explore just display some chinese word

    ReplyDelete
  2. Please! Please! Please! Please! Please! Please!Please! sent your es-file explorer

    ReplyDelete

Post a Comment

Popular posts from this blog

Play video on Sketchware

Enable download in Sketchware web browser

How to add calendar in your Android App using Sketchware