<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="sequentially">
<objectAnimator
android:duration="@android:integer/config_longAnimTime"
android:propertyName="pathData"
android:valueFrom="M24,0 l 0,48 M0,24 l 48,0"
android:valueTo="M9,36 l 20,0 M27,36 l 0,-36"
android:valueType="pathType" />
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:ordering="sequentially">
<objectAnimator
android:duration="@android:integer/config_longAnimTime"
android:propertyName="rotation"
android:valueFrom="45"
android:valueTo="405"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/vector_cross">
<target
android:name="cross"
android:animation="@animator/check_animation"/>
<target
android:name="rotateContainer"
android:animation="@animator/rotate_check_animation" />
</animated-vector>
mAnimatedDrawable = (AnimatedVectorDrawable) getResources()
.getDrawable(R.drawable.animated_check);
imageView.setImageDrawable(mAnimatedDrawable);
mAnimatedDrawable.start();
| 欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |