Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何在ObjectAnimator';什么是xml?_Android_Android Animation - Fatal编程技术网

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" />