我喜欢 android Pie 的 Activity 之间的转换,所以我想将它导入我自己的应用程序,但要处理文件:\Sdk\platforms\android- 中的 activity_open_enter.xml 28\data\res\anim 导致我的 IDE 出错:
Element <cliprect is not allowed here.
.
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:fromYDelta="4.1%"
android:toYDelta="0"
android:interpolator="@android:interpolator/accelerate_decelerate"
android:duration="425"/>
<cliprect
android:fromLeft="0%"
android:fromTop="95.9%"
android:fromRight="100%"
android:fromBottom="100%"
android:toLeft="0%"
android:toTop="0%"
android:toRight="100%"
android:toBottom="100%"
android:interpolator="@interpolator/fast_out_extra_slow_in"
android:duration="425"/>
我的最小 api 是 21,我的目标是 28
最佳答案
这是 Android 的私有(private)组件,不能使用。
关于android - 为什么我不能像 API 28 中的 activity_open_enter.xml 一样在 android 动画资源中使用 <cliprect>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54221728/