How to distinguish between Touch and drag in android… I want to create a listview in which people can drag and drop list items,that too with out using a handle…
What I have tried and failed is..
case MotionEvent.ACTION_DOWN:
mIsClickX = x;
mIsClickY = y;
and
case MotionEvent.ACTION_UP:
if(x == mIsClickX &&y == mIsClickY){
return super.onTouchEvent(ev);
}
Which doesn’t work…
Thanks in advance for all your valuable suggestions
MotionEvent.ACTION_MOVE, you can also check:
1- http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2/1747
2- Android List View Drag and Drop sort