1<?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<RelativeLayout
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:visibility="gone">
22
23  <ImageButton
24    android:id="@+id/search_back_button"
25    android:layout_width="@dimen/search_box_icon_size"
26    android:layout_height="@dimen/search_box_icon_size"
27    android:layout_marginStart="16dp"
28    android:layout_centerVertical="true"
29    android:background="?attr/selectableItemBackgroundBorderless"
30    android:contentDescription="@string/action_menu_back_from_search"
31    android:src="@drawable/back_arrow"
32    android:tint="?colorTextOnUnthemedDarkBackground"/>
33
34  <EditText
35    android:id="@+id/search_view"
36    android:layout_width="match_parent"
37    android:layout_height="wrap_content"
38    android:layout_toEndOf="@+id/search_back_button"
39    android:layout_toStartOf="@+id/search_close_button"
40    android:layout_centerVertical="true"
41    android:layout_marginStart="8dp"
42    android:background="@null"
43    android:fontFamily="@string/search_font_family"
44    android:imeOptions="flagNoExtractUi"
45    android:inputType="textFilter"
46    android:maxLines="1"
47    android:textColor="?android:attr/textColorPrimary"
48    android:textColorHint="?android:attr/textColorHint"
49    android:textCursorDrawable="@drawable/searchedittext_custom_cursor"
50    android:textSize="@dimen/search_text_size"/>
51
52  <ImageView
53    android:id="@+id/search_close_button"
54    android:layout_width="@dimen/search_box_close_icon_size"
55    android:layout_height="@dimen/search_box_close_icon_size"
56    android:layout_alignParentEnd="true"
57    android:layout_centerVertical="true"
58    android:padding="@dimen/search_box_close_icon_padding"
59    android:background="?attr/selectableItemBackgroundBorderless"
60    android:clickable="true"
61    android:contentDescription="@string/description_clear_search"
62    android:src="@drawable/quantum_ic_close_vd_theme_24"
63    android:tint="?colorIcon"/>
64</RelativeLayout>
65