android - 为什么我不能使用在 android 动画资源中,就像 API 28 中的 activity_open_enter.xml
问题描述
我喜欢来自 android Pie 的活动之间的转换,所以我想将它导入到我自己的应用程序中,但是处理文件:activity_open_enter.xml from \Sdk\platforms\android-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 的私有组件,不能使用。
推荐阅读
- php - 如果文件字段为空并且当它不为空时,上传是值,是否有任何方法可以上传空值?
- php - apache2 工作和 php7.2 但不在一起
- reactjs - React 创建永远不会重建的自定义 Hook
- php - 使用 SimpleHtmlDom 从脚本标签的出现中解析 JSON 数据 - PHP
- amazon-web-services - AWS EC2 更改公共 DNS 主机名,以便它与反向 DNS 查找一起使用
- javascript - Javascript如何将新元素从初始数组推送到相同索引的数组数组中的每个数组?
- python - 如何根据具有连续属性值对对象(元组)进行分组?
- excel - 将宏按钮复制粘贴到不同的工作表时宏不起作用
- django - 如何暂时禁用 Django 索引(用于 SQLite)
- python - 仅在需要时链接方法