ViewPropertyAnimator set absolute position

163 views Asked by At

I have an ImageView and I want to make an animation like this (sorry for bad image, but I think it give a general idea of animation) enter image description here

I used ViewPropertyAnimator:

img.animate()
       .translationX(50f)
       .translationY(500f)
       .setDuration(500)
       .start();

And I get this: enter image description here

Why that? Sorry for my bad English

0

There are 0 answers