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