public static boolean pointInView(View v,float localX,float localY,float slop){
  return localX >= -slop && localY >= -slop && localX < (v.getWidth() + slop) && localY < (v.getHeight() + slop);
}

public static boolean pointInView ( View v , float localX , float localY , float slop ) { return localX >= - slop && localY >= - slop && localX < ( v . getWidth ( ) + slop ) && localY < ( v . getHeight ( ) + slop ) ; }
utility method to determine whether the given point , in local coordinates , is inside the view , where the area of the view is expanded by the slop factor . this method is called while processing touch - move events to determine if the event is still within the view .
