G
G
GaliFFun2015-03-08 22:37:48
Java
GaliFFun, 2015-03-08 22:37:48

Intersection condition 2 ImageView Android Studio?

We were asked to make a small project: moving the picture with the help of the accelerometer, and collecting "targets" with it. A condition is necessary: ​​when crossing 2 ImageView, some code will be executed. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-03-08
@onepavel

In android there is a Rect class which is capable of checking for an intersection with a point or another rect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question