blob: e5e180a1ae347d6fd71c22c771306f9c78a306c6 [file] [log] [blame]
Brian Attwell13979652014-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 Leed8145a52015-10-28 21:03:00 +000023 android:visibility="gone" >
Brian Attwell13979652014-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"
Nancy Chen80f8bee2014-08-15 12:19:29 -070029 android:layout_margin="@dimen/search_box_navigation_icon_margin"
Brian Attwell13979652014-05-30 16:46:36 -070030 android:src="@drawable/ic_back_arrow"
Wenyi Wang4ad6cc62016-02-21 10:48:40 -080031 android:background="?android:attr/selectableItemBackgroundBorderless"
Brian Attwell13979652014-05-30 16:46:36 -070032 android:contentDescription="@string/action_menu_back_from_search"
Bryan Owens8fb03632015-12-11 22:04:15 -060033 android:tint="@color/back_arrow_icon_tint_color" />
Brian Attwell13979652014-05-30 16:46:36 -070034
35 <EditText
36 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 Chen03f40702014-08-06 11:14:49 -070045 android:textCursorDrawable="@drawable/searchedittext_custom_cursor"
Brian Attwell13979652014-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 Chen80f8bee2014-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 Attwellf326c6c2015-01-20 11:28:24 -080055 android:padding="@dimen/search_box_close_icon_padding"
Brian Attwell13979652014-05-30 16:46:36 -070056 android:src="@drawable/ic_close_dk"
57 android:clickable="true"
Wenyi Wang4ad6cc62016-02-21 10:48:40 -080058 android:background="?android:attr/selectableItemBackgroundBorderless"
Andrew Leec6607752014-06-06 13:09:37 -070059 android:contentDescription="@string/description_clear_search"
60 android:tint="@color/searchbox_icon_tint"/>
Brian Attwell13979652014-05-30 16:46:36 -070061
Andrew Leec6607752014-06-06 13:09:37 -070062</LinearLayout>