Android Question Fit in Image

herryj

Member
Licensed User
Longtime User
Hi,
I'm having problem on how automatically fit in the red box if it is near in the gray one. (shown in the file attached).

the output should be the red box overlay the gray box.

help guys.

Thanks

fitIn.png
 

sorex

Expert
Licensed User
Longtime User
you need to calculate the distance. if smaller than a certain amount just give the red box the same top & left values of the gray one.
 
Upvote 0
Top