blob: 9f90bc7d09167b31edee4da587fc80538a86e0d8 [file] [log] [blame]
Brian Attwell1b619222014-05-30 16:46:36 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<LinearLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
18 android:id="@+id/search_box_expanded"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:orientation="horizontal"
22 android:gravity="center_vertical"
Andrew Leea8984032015-10-28 21:03:00 +000023 android:visibility="gone" >
Brian Attwell1b619222014-05-30 16:46:36 -070024
25 <ImageButton
26 android:id="@+id/search_back_button"
27 android:layout_width="@dimen/search_box_icon_size"
28 android:layout_height="@dimen/search_box_icon_size"
yaolu07adefe2016-07-22 11:15:51 -070029 android:layout_marginEnd="@dimen/search_box_navigation_icon_margin"
John Shaobd9ef3c2016-12-15 12:42:03 -080030 android:src="@drawable/quantum_ic_arrow_back_vd_theme_24"
Wenyi Wang38151852016-04-02 14:30:02 -070031 android:background="?attr/selectableItemBackgroundBorderless"
Brian Attwell1b619222014-05-30 16:46:36 -070032 android:contentDescription="@string/action_menu_back_from_search"
33 android:tint="@color/actionbar_background_color" />
34
Walter Jangadab7e92016-05-20 10:59:06 -070035 <android.widget.AutoCompleteTextView
Brian Attwell1b619222014-05-30 16:46:36 -070036 android:id="@+id/search_view"
37 android:layout_width="0dp"
38 android:layout_height="@dimen/search_box_icon_size"
39 android:layout_weight="1"
40 android:layout_marginLeft="@dimen/search_box_text_left_margin"
41 android:textSize="@dimen/search_text_size"
42 android:fontFamily="@string/search_font_family"
43 android:textColor="@color/searchbox_text_color"
44 android:textColorHint="@color/searchbox_hint_text_color"
Nancy Chen5b0baf82014-08-06 11:14:49 -070045 android:textCursorDrawable="@drawable/searchedittext_custom_cursor"
Brian Attwell1b619222014-05-30 16:46:36 -070046 android:background="@null"
47 android:inputType="textFilter"
48 android:singleLine="true"
49 android:imeOptions="flagNoExtractUi" />
50
51 <ImageView
52 android:id="@+id/search_close_button"
Nancy Chenc1706992014-08-15 12:19:29 -070053 android:layout_height="@dimen/search_box_close_icon_size"
54 android:layout_width="@dimen/search_box_close_icon_size"
Brian Attwell6bdaeb92015-01-20 11:28:24 -080055 android:padding="@dimen/search_box_close_icon_padding"
John Shaobd9ef3c2016-12-15 12:42:03 -080056 android:src="@drawable/quantum_ic_close_vd_theme_24"
Gary Mai3e9637f2016-09-06 18:22:55 -070057 android:tint="@color/quantum_black_secondary_text"
Brian Attwell1b619222014-05-30 16:46:36 -070058 android:clickable="true"
Wenyi Wang38151852016-04-02 14:30:02 -070059 android:background="?attr/selectableItemBackgroundBorderless"
Gary Mai3e9637f2016-09-06 18:22:55 -070060 android:contentDescription="@string/description_clear_search" />
Brian Attwell1b619222014-05-30 16:46:36 -070061
Andrew Lee89aa5e92014-06-06 13:09:37 -070062</LinearLayout>