0
的確切面積是現在我的代碼:按屏幕上
public boolean onTouchEvent(MotionEvent event)
{
int action = event.getAction();
switch(action)
{
case MotionEvent.ACTION_DOWN:
// Do click work here ...
Y -= 10;
Yopen = 1;
break;
case MotionEvent.ACTION_UP:
// Do release work here ...
Yopen = 0;
break;
}
return super.onTouchEvent(event);
}
但我想讓只有三個不同的區域執行不同的代碼。 有人可以幫助我,在互聯網上的一些很好的教程。