blob: f142d27016058da7858b3e71267808ff3dfa0e98 [file] [log] [blame]
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
Jin Caoc6801eb2014-08-12 18:16:57 -07003 Copyright (C) 2014 Google Inc.
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08004 Licensed to The Android Open Source Project.
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
18
Jin Caoc6801eb2014-08-12 18:16:57 -070019<com.android.mail.ui.MaterialSearchActionView
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -080020 xmlns:android="http://schemas.android.com/apk/res/android"
Jin Caoc6801eb2014-08-12 18:16:57 -070021 android:id="@+id/search_actionbar_view"
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -080022 android:layout_width="match_parent"
Jin Caoc6801eb2014-08-12 18:16:57 -070023 android:layout_height="match_parent"
Jin Caoa70ab692014-08-21 19:15:15 -070024 android:background="@android:color/white"
25 android:visibility="gone">
Jin Caoc6801eb2014-08-12 18:16:57 -070026
27 <ImageView
28 android:id="@+id/search_actionbar_back_button"
29 android:layout_width="@dimen/search_leading_button_width"
30 android:layout_height="match_parent"
31 android:background="?android:attr/selectableItemBackground"
Jin Cao8ebcda92014-09-15 12:33:37 -070032 android:contentDescription="@string/search_back_desc"
Jin Caod19d4022014-09-01 22:18:29 -070033 android:paddingLeft="@dimen/search_button_padding"
34 android:paddingRight="@dimen/search_button_padding"
35 android:scaleType="center"
36 android:src="@drawable/ic_arrow_back_24dp_with_rtl" />
Jin Caoc6801eb2014-08-12 18:16:57 -070037
38 <EditText
39 android:id="@+id/search_actionbar_query_text"
40 android:layout_width="0dp"
41 android:layout_height="match_parent"
42 android:layout_weight="1"
43 android:background="@android:color/transparent"
44 android:gravity="center_vertical"
45 android:hint="@string/search_hint"
46 android:imeOptions="actionSearch|flagNoExtractUi"
47 android:inputType="text|textNoSuggestions"
Jin Caod19d4022014-09-01 22:18:29 -070048 android:paddingLeft="@dimen/search_main_text_padding"
49 android:paddingRight="@dimen/search_main_text_padding"
Jin Caoc6801eb2014-08-12 18:16:57 -070050 android:singleLine="true"
Jin Caod19d4022014-09-01 22:18:29 -070051 android:textAlignment="viewStart"
Jin Caoc6801eb2014-08-12 18:16:57 -070052 android:textColor="@color/search_query_text"
53 android:textColorHint="@color/search_query_hint_text"
54 android:textSize="16sp" />
55
56 <ImageView
57 android:id="@+id/search_actionbar_ending_button"
58 android:layout_width="@dimen/search_ending_button_width"
59 android:layout_height="match_parent"
60 android:background="?android:attr/selectableItemBackground"
Jin Caod19d4022014-09-01 22:18:29 -070061 android:paddingLeft="@dimen/search_button_padding"
62 android:paddingRight="@dimen/search_button_padding"
Jin Cao8ebcda92014-09-15 12:33:37 -070063 android:scaleType="center" />
Jin Caoc6801eb2014-08-12 18:16:57 -070064
65</com.android.mail.ui.MaterialSearchActionView>