public boolean onTouchEvent(MotionEvent event) {
//獲得觸摸的坐標(biāo)
float x = event.getX();
float y = event.getY(); switch (event.getAction())
{
//觸摸屏幕時(shí)刻
case MotionEvent.ACTION_DOWN:
break;
//觸摸并移動(dòng)時(shí)刻
case MotionEvent.ACTION_MOVE:
break;
//終止觸摸時(shí)刻
case MotionEvent.ACTION_UP:
break;
}
return true;
}