Esempio n. 1
0
 /**
  * If the motion event was relative to the view which in ignored view list,return true;
  *
  * @param ev
  * @return
  */
 private boolean isInIgnoredView(MotionEvent ev) {
   Rect rect = new Rect();
   for (View v : ignoredViews) {
     v.getGlobalVisibleRect(rect);
     if (rect.contains((int) ev.getX(), (int) ev.getY())) return true;
   }
   return false;
 }