I have an Imageview
in a RelativeLayout
. It should start from the centre of the screen (parent) and than goes to a specific point. Actual i work with xml.
Any Solutions?
My Animation XML-
<set xmlns:android="http://schemas.android.com/apk/res/android">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="false">
<translate
android:fromYDelta="0%p"
android:fromXDelta="0%p"
android:toYDelta="0%"
android:toXDelta="0%"
android:duration="1000"
android:pivotX="0%p"
android:pivotY="0%p"/>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXScale="432px"
android:toXScale="100%"
android:fromYScale="450px"
android:toYScale="100%"
android:duration="1000"
android:pivotX="0%p"
android:pivotY="0%p" />
</set>
I've tried it in fromYDelta
and fromXDelta
with 100%p, 50%p, 0%p, 100, 50, 0, 100%, 50% and 0%
. Nothing works!
Now im confused!
Thanks for your time and help
Edit: