Android Ripple显示在较低的同级视图后面

Android Ripple显示在较低的同级视图后面,android,Android,我创建了一个列表项(如图所示),其中有一个图像视图(美丽的Miranda Kerr)和一个图像按钮(垃圾图标),背景为SelectableItemBackgroundless 现在,当我点击垃圾箱图标时,涟漪在ImageView 当然,我希望涟漪发生在图像前面和垃圾图标后面 完整的item.xml: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http:/

我创建了一个列表项(如图所示),其中有一个
图像视图(美丽的Miranda Kerr)和一个
图像按钮(垃圾图标),背景为
SelectableItemBackgroundless

现在,当我点击垃圾箱图标时,涟漪在
ImageView

当然,我希望涟漪发生在图像前面和垃圾图标后面

完整的
item.xml

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <ImageView
        android:id="@+id/image_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:adjustViewBounds="true"
        tools:src="@drawable/cover"
        />

    <ImageButton
        android:id="@+id/trash_image_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="right|bottom"
        android:src="@drawable/translucent_trash"
        android:background="?attr/selectableItemBackgroundBorderless"
        />
</FrameLayout>

这与以下方面的问题相同:

您可以使用背景透明的FrameLayout包装按钮