I set CardView and inside of it I put RelativeLayout.
Layout looks something like this:
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/row_basket_list_card_view"
android:orientation="horizontal"
android:layout_width="match_parent"
android:clickable="true"
android:layout_margin="5dp"
card_view:cardCornerRadius="@dimen/basket_list_cardview_corner_radius"
card_view:cardElevation="@dimen/basket_list_cardview_elevation"
card_view:cardUseCompatPadding="true"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/selectableItemBackground">
...
When I click on CardView on Lollipop phones, I get a nice ripple effect and everyone is happy. But, when I click on that CardView on pre-Lollipop phones, it only gets colored with some blue semi-transparent color. It looks ok with me, but I would like to change that color.
How can I do that?
Best,
Deveti