2013-06-24 48 views

回答

0

見代碼例如:

...  
yourLinearLayoutInScrollView.setOnTouchListener(new LayoutOnTouchListener()); 
... 

private class LayoutOnTouchListener implements View.OnTouchListener { 
     @Override 
     public boolean onTouch(View view, MotionEvent motionEvent) { 
      Point realTouchPosition = new Point(Math.round(motionEvent.getX() + view.getScrollX()), Math.round(motionEvent.getY() + view.getScrollY())); 

      return false; 
     } 
    }