I've got an ImageView centered inside a RelativeLayout using android:layout_centerHorizontal="true"
and android:layout_centerVertical="true"
.
Can I animate (move) it to let's say the bottom right corner, using XML and/or code? I'd like to specify the duration of the animation as well as possibly the curve.
Before:
<ImageView android:id="@+id/imageview01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:src="@drawable/imagefile" />
After:
<ImageView android:id="@+id/imageview01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:src="@drawable/imagefile" />