private boolean isTouchInsideList(MotionEvent ev){
  float x=ev.getX() - mListView.getX();
  float y=ev.getY() - mListView.getY();
  if (x < 0 || x > mListView.getWidth() || y < 0 || y > mListView.getHeight()) {
    return false;
  }
  return true;
}

private boolean isTouchInsideList ( MotionEvent ev ) { float x = ev . getX ( ) - mListView . getX ( ) ; float y = ev . getY ( ) - mListView . getY ( ) ; if ( x < 0 || x > mListView . getWidth ( ) || y < 0 || y > mListView . getHeight ( ) ) { return false ; } return true ; }
checks whether a touch event is inside of the bounds of the mode list .
