public boolean onTouchEvent(MotionEvent event) {
//获得触摸的坐标
float x = event.getX();
float y = event.getY(); switch (event.getAction())
{
//触摸屏幕时刻
case MotionEvent.ACTION_DOWN:
break;
//触摸并移动时刻
case MotionEvent.ACTION_MOVE:
break;
//终止触摸时刻
case MotionEvent.ACTION_UP:
break;
}
return true;
}