Give search view buttons unbounded ripples
Also increase the size of the buttons slightly so that the ripples
are not so small
Bug: 15730203
Change-Id: I5e2d7d43275a557f6cf9782f2f17a7958deb1acd
diff --git a/res-common/layout/search_bar_expanded.xml b/res-common/layout/search_bar_expanded.xml
index c78ce12..6c10cb4 100644
--- a/res-common/layout/search_bar_expanded.xml
+++ b/res-common/layout/search_bar_expanded.xml
@@ -28,7 +28,7 @@
android:layout_height="@dimen/search_box_icon_size"
android:layout_margin="@dimen/search_box_icon_margin"
android:src="@drawable/ic_back_arrow"
- android:background="?android:attr/selectableItemBackground"
+ android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_menu_back_from_search"
android:tint="@color/actionbar_background_color" />
@@ -54,7 +54,7 @@
android:layout_margin="@dimen/search_box_icon_margin"
android:src="@drawable/ic_close_dk"
android:clickable="true"
- android:background="?android:attr/selectableItemBackground"
+ android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/description_clear_search"
android:tint="@color/searchbox_icon_tint"/>
diff --git a/res-common/values/dimens.xml b/res-common/values/dimens.xml
index 87c88ae..5c2a1f9 100644
--- a/res-common/values/dimens.xml
+++ b/res-common/values/dimens.xml
@@ -121,7 +121,7 @@
<!-- Padding around the icon in the search box. -->
<dimen name="search_box_icon_margin">4dp</dimen>
<!-- Size of the icon (voice search, close search) in the search box. -->
- <dimen name="search_box_icon_size">28dp</dimen>
+ <dimen name="search_box_icon_size">32dp</dimen>
<!-- Left margin of the text field in the search box. -->
<dimen name="search_box_text_left_margin">27dp</dimen>
<!-- Search box text size -->