2

I want to find a way how to do in android such thing(things like I do using java.awt.Shape):

Shape shape = ...;

shape.intersects(left, top, width, height);
shape.contains(left, top, width, height);

Tried to consider android classes: Path, Shape... but didn't find anything. A little bit confused by all this android stuff.

Could you please, guys help me to find a solution?

d-n-ust
  • 122
  • 1
  • 9

1 Answers1

0

Android has the Rect class that has methods to detect intersection.

This might help as well:

How to use the Rect.intersect method.

Community
  • 1
  • 1
Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84