val rc_img1 = Rect()
Imageview1.getDrawingRect(rc_img1)
val rc_img2 = Rect()
buotton1.getDrawingRect(rc_img2)
if (Rect.intersects(rc_img1, rc_img2)) {
...move <-
else
...move ->
make me collesion detection always!
I try collide Imageview1 with buttonDX but give me always collision detection true!