loopeer / shadow

Deprecated because of the performance not fine. Android custom shadow view, can replace your CardView
1.37k stars 141 forks source link

添加水波纹点击效果,点击时出现明显卡顿 #36

Open ErQi opened 4 years ago

ErQi commented 4 years ago

在布局中使用水波纹点击效果时,点击出现明显卡顿

<com.loopeer.shadow.ShadowView 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="match_parent"
    android:layout_marginStart="11dp"
    android:layout_marginTop="4dp"
    android:layout_marginEnd="11dp"
    android:layout_marginBottom="8dp"
    android:foreground="?attr/selectableItemBackground"
    app:cornerRadius="4dp"
    app:shadowColor="#140282FF"
    app:shadowMargin="4dp"
    app:shadowRadius="4dp">