0

I want to continuously keep receiving the touch coordinates when finger is in the same exact place meaning getting the

CASE.MOVE_DOWN

Continuously.

Now the problem is android only gives

CASE.MOVE_UP
CASE.MOVE_DOWN
CASE.MOVE_MOVE

So is there anyway to getting Continuous touch..???

1 Answers1

0

Try using this code:

double placeX, placeY;
yourView.setOnTouchListener(new View.OnTouchListener() {
    @Override
    public boolean onTouch(View v, MotionEvent event) {
        placeX = event.getX(); //Store the coordinates of the touch in the meantime
        placeY = event.getY();
        return true;
    }
});

resource

Community
  • 1
  • 1
Dotan
  • 43
  • 9