bool IsViewInBounds(Android.Views.View v, int x, int y)
 {
     v.GetDrawingRect(_rect);
     v.GetLocationOnScreen(_location);
     _rect.Offset(_location[0], _location[1]);
     return(_rect.Contains(x, y));
 }
Esempio n. 2
0
 private bool IsViewInBounds(int x, int y)
 {
     View.GetDrawingRect(_rect);
     View.GetLocationOnScreen(_location);
     _rect.Offset(_location[0], _location[1]);
     return(_rect.Contains(x, y));
 }