[android] Fixed look of card backgrounds on discovery screen for night theme. It was broken after material components theme integration

This commit is contained in:
alexzatsepin 2020-09-09 18:19:44 +03:00 committed by Arsentiy Milchakov
parent 591333ea20
commit e684c842aa
8 changed files with 22 additions and 8 deletions

View file

@ -9,7 +9,8 @@
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:foreground="?clickableBackground"
android:orientation="vertical"

View file

@ -4,11 +4,13 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:foreground="?clickableBackground"
android:orientation="vertical"

View file

@ -3,11 +3,13 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -3,11 +3,13 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -4,11 +4,13 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="@dimen/gallery_product_width"
android:layout_height="match_parent"

View file

@ -9,7 +9,8 @@
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="@dimen/gallery_product_width"
android:layout_height="match_parent"

View file

@ -3,11 +3,13 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View file

@ -3,11 +3,13 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:padding="@dimen/margin_quarter"
android:clipToPadding="false">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
app:cardBackgroundColor="?cardBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"