Ripple-Effekt auf ein RecyclerView-Objekt mit ImageView
Ich habe einRecyclerView
erweitert das folgende Rasterelement:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/children_tile_border"
android:layout_marginTop="@dimen/children_tile_border"
android:clickable="true"
android:focusable="true"
android:background="?selectableItemBackground"
tools:ignore="RtlHardcoded">
<com.example.app.ui.widget.SquareImageView
android:id="@+id/child_picture"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"
android:layout_alignParentBottom="true"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="68dp"
android:background="@color/tile_text_background"
android:gravity="center_vertical"
android:layout_alignParentBottom="true">
..............
</LinearLayout>
</RelativeLayout>
Aber der Ripple-Effekt wird erst angezeigt, wenn ich das @ -Zeichen gesetzt habSquareImageView's
Sichtbarkeit zu unsichtbar. Es scheint, dass der Ripple-Effekt unter dem @ gezeichnet isSquareImageView
. Wie kann ich kann ich es über das @ ziehen lassSquareImageView
?