【发布时间】:2019-07-05 21:55:36
【问题描述】:
有CardView 物品的回收站。当屏幕打开时 - 我在回收器上启动 alpha 动画:
recyclerView.animate().alpha(1f).setStartDelay(300).start()
回收物品:
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_marginTop="6dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="6dp"
app:cardCornerRadius="10dp"
app:cardElevation="4dp">
...
</android.support.v7.widget.CardView>
问题是,当此动画运行时CardView 的阴影指向上方,但当动画结束时,阴影将方向更改为底部(正常)
仅在 Android 9 上发现问题。
附:对不起我的英语)
【问题讨论】:
-
这有什么更新吗?我也有同样的问题。
-
我遇到了同样的问题并在这里提交了一个错误。 issuetracker.google.com/issues/132569416
标签: android animation shadow elevation