android - 为什么我不能像 API 28 中的 activity_open_enter.xml 一样在 android 动画资源中使用 <cliprect>

标签 android android-studio

我喜欢 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/

相关文章:

java - Android 通过 OpenCsv 写入 CSV 文件

android - 使用Gradle 3.1.0运行时Jacoco崩溃

android - Android Studio 有像 Eclipse 中的 MAT 这样的内存分析工具吗?

java - android studio 自动完成 : how to display constructors with parameters

android - ./gradlew 没有这样的文件或目录 - Android studio 2.3

java - 如何在自定义 key 子项中创建子项?

java - Android studio 使用Split方法能够从数据库中删除待办事项列表

android - 由于 ClassNotFoundException,无法构建 Android 应用程序

android - 如何在 Android Studio 4.1 中默认启用 Kotlin Android 扩展

android - 应用程序在运行 fragment 和 tablayout 应用程序时意外停止