Android 如何在ObjectAnimator';什么是xml?
我想在Android 如何在ObjectAnimator';什么是xml?,android,android-animation,Android,Android Animation,我想在valueFrom字段中使用cardBackgroundColor的当前值。这仅在XML中是可能的吗?如果有人在这个问题上出错:只需省略animator XML中的android:valueFrom属性,就会使用当前值 <objectAnimator android:duration="@android:integer/config_shortAnimTime" android:propertyName="cardBackgroundColor"
valueFrom
字段中使用cardBackgroundColor
的当前值。这仅在XML中是可能的吗?如果有人在这个问题上出错:只需省略animator XML中的android:valueFrom
属性,就会使用当前值
<objectAnimator android:duration="@android:integer/config_shortAnimTime"
android:propertyName="cardBackgroundColor"
android:valueFrom="????"
android:valueTo="@color/defaultCardColor"
android:valueType="colorType" />