From 465560d388cdd9c2e0bb06b6d5af2d5c084e5cbf Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Fri, 25 Jun 2021 16:18:03 +0800 Subject: [PATCH] Shows ripple effect inside CardPreference's rounded rectangle contextual_card_background is a drawable which shows ripple. Sets contextual_card_background as the foreground of MaterialCardView. Bug: 191617809 Test: manual visual Change-Id: I09ee886fe56e443626042682381560ed0f32d51d --- res/layout/card_preference_layout.xml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/res/layout/card_preference_layout.xml b/res/layout/card_preference_layout.xml index 90e33882dd0..5ac4afc1035 100644 --- a/res/layout/card_preference_layout.xml +++ b/res/layout/card_preference_layout.xml @@ -15,20 +15,19 @@ limitations under the License. --> - - + + - - - + android:layout_marginStart="-8dp" + layout="@layout/settingslib_preference"/> +