gradle
implementation 'com.android.support:support-vector-drawable:VERSION'
targetSdkVersion 24
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/vector_image" />
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,2L3,19L21,19Z" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android">
<vector
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<group
android:name="rotationGroup"
android:pivotX="12"
android:pivotY="12"
android:rotation="0">
<path
android:name="path"
android:fillColor="#FF000000"
android:pathData="M12,2L3,19L21,19Z" />
</group>
</vector>
<target
android:name="path">
<aapt:attr name="android:animation">
<objectAnimator
android:propertyName="pathData"
android:startOffset="100"
android:fillColor="#FF000000"
android:duration="3000"
android:valueFrom="M12,2L8,17 16,17Z"
android:valueTo="M12,2L3,19L21,19Z"
android:valueType="pathType" />
</aapt:attr>
</target>
</animated-vector>