Iva*_*kov 6 animation android elevation shadow
有CardView物品的回收站。屏幕打开时-我在回收站上启动Alpha动画:
recyclerView.animate().alpha(1f).setStartDelay(300).start()
Run Code Online (Sandbox Code Playgroud)
回收项目:
<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>
Run Code Online (Sandbox Code Playgroud)
问题是,当此动画运行时阴影CardView朝上,但动画结束时,阴影向底部改变方向(正常)
仅在Android 9上发现问题。
PS对不起我的英语)
| 归档时间: |
|
| 查看次数: |
230 次 |
| 最近记录: |