Animate resizing of ImageView to size of another ImageView
I have a picture that I want to animate and move to another ImageView location.
Currently this is what I'm doing :
v.animate()
.scaleX(??)
.scaleY(??)
.x(target.x)
.y(target.y)
.setDuration(1000)
.start()
My question is how can I calculate the correct scale factor for x and y? If I set the layout params equal to the target's layout params, then it works...