blob: c530299443fd17f88e8a4ea01ac924849f8bfe8f [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"
Nancy Chenc1706992014-08-15 12:19:29 -070029 android:layout_margin="@dimen/search_box_navigation_icon_margin"
Brian Attwell1b619222014-05-30 16:46:36 -070030 android:src="@drawable/ic_back_arrow"
Yorke Leee791ea32014-07-31 15:14:38 -070031 android:background="?android: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
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 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"
Brian Attwell1b619222014-05-30 16:46:36 -070056 android:src="@drawable/ic_close_dk"
57 android:clickable="true"
Yorke Leee791ea32014-07-31 15:14:38 -070058 android:background="?android:attr/selectableItemBackgroundBorderless"
Andrew Lee89aa5e92014-06-06 13:09:37 -070059 android:contentDescription="@string/description_clear_search"
60 android:tint="@color/searchbox_icon_tint"/>
Brian Attwell1b619222014-05-30 16:46:36 -070061
Andrew Lee89aa5e92014-06-06 13:09:37 -070062</LinearLayout>