2013-03-07 25 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; 
    } 
}