2013-03-07 23 views

回答

1

爲什麼不在適當的操作發生時才調用你的邏輯?例如:

public boolean onTouch(View v, MotionEvent e){ 
    switch(e.getAction()){ 
    case MotionEvent.ACTION_DOWN: 
     //scale here 
     break; 
    case MotionEvent.ACTION_MOVE: 
     //move here 
     break; 
    } 
}