波纹效果不恢复抽屉导航的颜色api 24

Ripple effect does not restore the color of Navigation Drawer api 24

我对涟漪效应和导航抽屉有疑问。在 api < 21 中,当我按下回收者视图项目时,该项目突出显示并恢复到其之前的颜色。 在 api >= 21 中,突出显示的颜色会一直保留,直到我单击其他 space。 会是什么呢? v21\custom_bg.xml

<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        android:color="?android:attr/colorControlHighlight">

    <item
        android:id="@+id/mask"
        android:drawable="@color/colorDrawer">
    </item>

</ripple>

好吧,我找到了解决方案。我在 api 24 上测试了我的应用程序,这是有问题的。我将 api 改为 23 后,它开始工作了。