In onTouch with a move action, you can get a rectangle associated with moving images, and another. Check if your straight lines intersect with each other using the intersection function, for example: Rect movingBound = new Rect (); Rect [] anotherImagesBound = new Rect [...]
get Rect bound by:
Rect movingBound = new Rect(); movingImage.getHitRect(movingBound);
same with another image. loop in anotherImagesBound and check:
if (anotherImagesBound[index].intersect(movingBound)){ // do something here }
Note. You should update moveBound every time you touch, but you should get your other ImageView once. We hope for this help.
source share