I have a RelativeLayout
with an ImageView
inside it. ImageView
is positioned randomly inside a layout. I'm trying to apply translate animation, which will translate the ImageView
from it's current position (x,y)
to the center of screen (x,y)
.
I have tried something like code below, but it doesn't do the trick.
<translate
android:fromXDelta="0%"
android:toXDelta="50%"
android:fromYDelta="0%"
android:toYDelta="50%"
android:duration="500"/>
Help appreciated ;)