From 109dc516b2e4a4ae3095384e829de5ac1ef6a706 Mon Sep 17 00:00:00 2001 From: Stanley Wang Date: Thu, 2 May 2019 16:03:44 +0800 Subject: [PATCH] Fix no touch feedback present on the settings suggestion card. Add selectableItemBackground attribut to conditional card layout, and add new background for contextual half card. Fixes: 129357518 Test: manual Change-Id: I726acfa3a55560d9b34f973b141e4a89cc8e8b68 --- res/drawable/contextual_card_background.xml | 22 +++++++++++++++++++++ res/layout/conditional_card_full_tile.xml | 3 ++- res/layout/conditional_card_half_tile.xml | 7 ++++--- res/layout/contextual_slice_half_tile.xml | 4 ++-- 4 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 res/drawable/contextual_card_background.xml diff --git a/res/drawable/contextual_card_background.xml b/res/drawable/contextual_card_background.xml new file mode 100644 index 00000000000..d8b2bbcdcf2 --- /dev/null +++ b/res/drawable/contextual_card_background.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/res/layout/conditional_card_full_tile.xml b/res/layout/conditional_card_full_tile.xml index ee2349827b0..81889fb3efc 100644 --- a/res/layout/conditional_card_full_tile.xml +++ b/res/layout/conditional_card_full_tile.xml @@ -35,7 +35,8 @@ android:paddingTop="@dimen/contextual_condition_full_card_padding_top" android:paddingBottom="@dimen/contextual_condition_full_card_padding_bottom" android:orientation="horizontal" - android:gravity="center_vertical"> + android:gravity="center_vertical" + android:background="?android:attr/selectableItemBackground"> + android:orientation="vertical" + android:background="?android:attr/selectableItemBackground"> - \ No newline at end of file + diff --git a/res/layout/contextual_slice_half_tile.xml b/res/layout/contextual_slice_half_tile.xml index 83b1df7c388..490b0ac8d8e 100644 --- a/res/layout/contextual_slice_half_tile.xml +++ b/res/layout/contextual_slice_half_tile.xml @@ -34,7 +34,7 @@ android:paddingEnd="@dimen/contextual_card_padding_end" android:paddingTop="@dimen/contextual_half_card_padding_top" android:paddingBottom="@dimen/contextual_half_card_padding_bottom" - android:background="@color/contextual_card_background" + android:background="@drawable/contextual_card_background" android:orientation="vertical"> - \ No newline at end of file +