Created
November 13, 2020 21:49
-
-
Save Nyame123/89bc32c301235859f58980105cd862b3 to your computer and use it in GitHub Desktop.
Creating animator set from xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:ordering="together"> | |
<objectAnimator android:propertyName="x" | |
android:valueTo="50" | |
android:duration="2000" | |
android:interpolator="@android:interpolator/accelerate_decelerate"/> | |
<objectAnimator | |
android:duration="2000" | |
android:interpolator="@android:interpolator/linear" | |
android:propertyName="y" | |
android:valueTo="100" /> | |
<objectAnimator | |
android:propertyName="scaleY" | |
android:duration="2000" | |
android:valueFrom="1" | |
android:valueTo="20" | |
android:interpolator="@android:interpolator/bounce"/> | |
</set> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment