diff options
author | Yorke Lee <yorkelee@google.com> | 2015-09-16 12:40:00 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-09-16 14:44:44 -0700 |
commit | 8cda8b0f242808fc4e13765498e7568d9bece954 (patch) | |
tree | cc63bdc65a3dc0d9991682d2d47d7d23e5f60b98 /res/layout/search_edittext.xml | |
parent | b2802803d90ff355a04109cc570bf69346d4102a (diff) |
Improve clickability of search bar buttons
Move some padding around to increase the touch area of
the voice search and overflow menu buttons
Replace microphone icon with correctly-sized one (24dp)
per material design guidelines
Bug: 22958299
Change-Id: I79ac81738eb4efbcdaf7d211afbec6fba6344c7f
Diffstat (limited to 'res/layout/search_edittext.xml')
-rw-r--r-- | res/layout/search_edittext.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/res/layout/search_edittext.xml b/res/layout/search_edittext.xml index 61406a197..8eda6960c 100644 --- a/res/layout/search_edittext.xml +++ b/res/layout/search_edittext.xml @@ -17,7 +17,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:paddingStart="@dimen/search_box_left_padding" - android:paddingEnd="@dimen/search_box_right_padding" android:gravity="center_vertical" android:orientation="horizontal"> @@ -25,8 +24,8 @@ android:id="@+id/search_magnifying_glass" android:layout_height="@dimen/search_box_icon_size" android:layout_width="@dimen/search_box_icon_size" - android:layout_margin="@dimen/search_box_icon_margin" android:padding="@dimen/search_box_search_icon_padding" + android:scaleType="center" android:src="@drawable/ic_ab_search" android:importantForAccessibility="no" android:tint="@color/searchbox_icon_tint" /> @@ -45,10 +44,10 @@ <ImageView android:id="@+id/voice_search_button" - android:layout_height="@dimen/search_box_icon_size" android:layout_width="@dimen/search_box_icon_size" - android:layout_margin="@dimen/search_box_icon_margin" - android:src="@drawable/ic_voice_search" + android:layout_height="match_parent" + android:src="@drawable/ic_mic_grey600" + android:scaleType="center" android:clickable="true" android:contentDescription="@string/description_start_voice_search" android:background="?android:attr/selectableItemBackgroundBorderless" @@ -57,8 +56,9 @@ <ImageButton android:id="@+id/dialtacts_options_menu_button" android:layout_width="@dimen/search_box_icon_size" - android:layout_height="@dimen/search_box_icon_size" - android:layout_margin="@dimen/search_box_icon_margin" + android:layout_height="match_parent" + android:paddingEnd="@dimen/search_box_right_padding" + android:scaleType="center" android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_overflow_menu" android:contentDescription="@string/action_menu_overflow_description" |