0

I tried using this code which I found on a related question but it is still not working. Any thoughts? Thank you

Rect r1 = new Rect();
        imageView1.getDrawingRect(r1);

Rect r2 = new Rect();
        imageView2.getDrawingRect(r2);

        if(r1.intersect(r2)) {
            btn.setText("Collision");
        }

0 Answers0