Самый простой способ обработки это было бы реализовать View.OnTouchListener
@Override
public boolean onTouch(View v, MotionEvent event)
{
float x = event.getX();
float y = event.getY();
switch(event.getAction())
{
case MotionEvent.ACTION_DOWN:
// A pressed gesture has started, the motion contains the initial starting location.
break;
case MotionEvent.ACTION_MOVE:
// A change has happened during a press gesture (between ACTION_DOWN and ACTION_UP).
break;
case MotionEvent.ACTION_UP:
// A pressed gesture has finished, the motion contains the final release location
// as well as any intermediate points since the last down or move event.
break;
}
return false; //True if the listener has consumed the event, false otherwise.
}
я могу легко использовать эти случаи событий, чтобы осуществить то, что я ищу. Благодаря! –