diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-05 18:36:34 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-05 18:40:13 -0700 |
commit | 2e943ee83005d2ed82d0df4594d18e9605e4b84e (patch) | |
tree | aefc9f0c08e2d2b262ce8c6fde498b502b0a6b77 /res | |
parent | 5e6431ec9df6cb62cab970c0b46618be3570c2f7 (diff) |
Tidy up search ripples/layout.
+ Make search/overflow ripples borderless
- Simplify some layouts.
The search bar as a whole still doesn't have a ripple, but that's
not a change from existing behavior.
Change-Id: I40c52d3257cc33002786d3d31fb1e162e5a5e171
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/search_edittext.xml | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/res/layout/search_edittext.xml b/res/layout/search_edittext.xml index 93a3c754f..61406a197 100644 --- a/res/layout/search_edittext.xml +++ b/res/layout/search_edittext.xml @@ -19,7 +19,7 @@ android:paddingStart="@dimen/search_box_left_padding" android:paddingEnd="@dimen/search_box_right_padding" android:gravity="center_vertical" - android:orientation="horizontal" > + android:orientation="horizontal"> <ImageView android:id="@+id/search_magnifying_glass" @@ -28,29 +28,20 @@ android:layout_margin="@dimen/search_box_icon_margin" android:padding="@dimen/search_box_search_icon_padding" android:src="@drawable/ic_ab_search" - android:background="?android:attr/selectableItemBackgroundBorderless" android:importantForAccessibility="no" android:tint="@color/searchbox_icon_tint" /> - <!-- Portion of the search box that starts a search when clicked --> - <LinearLayout + <TextView android:id="@+id/search_box_start_search" android:layout_height="wrap_content" android:layout_width="0dp" android:layout_weight="1" - android:gravity="center_vertical" > - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginLeft="@dimen/search_box_collapsed_text_margin_left" - android:textSize="@dimen/search_collapsed_text_size" - android:fontFamily="@string/search_font_family" - android:textColorHint="@color/searchbox_hint_text_color" - android:gravity="center_vertical" - android:hint="@string/dialer_hint_find_contact" /> - - </LinearLayout> + android:layout_marginLeft="@dimen/search_box_collapsed_text_margin_left" + android:textSize="@dimen/search_collapsed_text_size" + android:fontFamily="@string/search_font_family" + android:textColorHint="@color/searchbox_hint_text_color" + android:gravity="center_vertical" + android:hint="@string/dialer_hint_find_contact" /> <ImageView android:id="@+id/voice_search_button" @@ -60,16 +51,15 @@ android:src="@drawable/ic_voice_search" android:clickable="true" android:contentDescription="@string/description_start_voice_search" - android:background="?android:attr/selectableItemBackground" + android:background="?android:attr/selectableItemBackgroundBorderless" android:tint="@color/searchbox_icon_tint" /> - <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:background="?android:attr/selectableItemBackground" + android:background="?android:attr/selectableItemBackgroundBorderless" android:src="@drawable/ic_overflow_menu" android:contentDescription="@string/action_menu_overflow_description" android:tint="@color/searchbox_icon_tint" /> |