blob: caa4715181cdbc2b7aea58180a1ebab34fa6ae4f [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"
23 android:visibility="gone" >
24
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"
29 android:layout_margin="@dimen/search_box_icon_margin"
30 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"
53 android:layout_height="@dimen/search_box_icon_size"
54 android:layout_width="@dimen/search_box_icon_size"
55 android:layout_margin="@dimen/search_box_icon_margin"
56 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>