@Override public boolean onTouchEvent(MotionEvent event) { // TODO Auto-generated method stub switch(event.getAction()){ case MotionEvent.ACTION_DOWN: case MotionEvent.ACTION_MOVE: float x = event.getX(); float y = event.getY(); Toast.makeText(this, "Touched@" + x + " : " + y, Toast.LENGTH_LONG).show(); // ((AndroidDetechTouchActivity)getContext()).updateMsg("Touched@" + x + " : " + y); break; case MotionEvent.ACTION_UP: // ((AndroidDetechTouchActivity)getContext()).updateMsg(""); break; } return true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)