From 0e092292fb96b8446994d4ea65b272ef1322ca85 Mon Sep 17 00:00:00 2001 From: Pierre Barbier de Reuille Date: Fri, 30 Apr 2021 14:30:37 +0100 Subject: [PATCH] Correct "cropping" of widget picker's search bar To corrent, I added 1dp of bottom margin. Not doing this, the framework ignores the dropped shadow due to the elevation when some text is entered in the box, leading to the observed cropping. Fix: 186722040 Test: Manually Change-Id: I746a8f014197552416ed9c40e9736baf22794c5f --- res/layout/widgets_search_bar.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layout/widgets_search_bar.xml b/res/layout/widgets_search_bar.xml index c3dd19e0bb..11acd40f96 100644 --- a/res/layout/widgets_search_bar.xml +++ b/res/layout/widgets_search_bar.xml @@ -6,6 +6,7 @@ android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="16dp" + android:layout_marginBottom="1dp" android:background="@drawable/bg_widgets_searchbox" android:elevation="2dp">