blob: ce85686815b3d0b788bea4e2fdba12f9c6394a30 [file] [log] [blame]
Yorke Lee53a22302014-04-29 18:13:46 -07001<?xml version="1.0" encoding="utf-8"?>
Andrew Leeb1903842014-05-15 16:11:24 -07002<view class="com.android.dialer.widget.SearchEditTextLayout"
Yorke Lee53a22302014-04-29 18:13:46 -07003 xmlns:android="http://schemas.android.com/apk/res/android"
4 android:layout_width="match_parent"
5 android:layout_height="match_parent"
6 android:id="@+id/search_view_container"
7 android:orientation="horizontal"
8 android:layout_marginTop="@dimen/search_top_margin"
9 android:layout_marginBottom="@dimen/search_bottom_margin"
10 android:layout_marginLeft="@dimen/search_margin_horizontal"
11 android:layout_marginRight="@dimen/search_margin_horizontal"
12 android:paddingLeft="@dimen/search_box_left_padding"
13 android:paddingRight="@dimen/search_box_right_padding"
Yorke Leeec489fb2014-05-19 15:39:27 -070014 android:background="@drawable/rounded_corner"
Yorke Lee75862682014-05-19 14:02:33 -070015 android:elevation="@dimen/search_box_elevation"
Yorke Lee53a22302014-04-29 18:13:46 -070016 >
Yorke Lee11ca39e2014-05-19 20:31:37 -070017 <LinearLayout
18 android:id="@+id/search_box_collapsed"
19 android:layout_width="match_parent"
20 android:layout_height="match_parent"
21 android:gravity="center_vertical"
22 android:orientation="horizontal" >
23
24 <!-- Portion of the search box that starts a search when clicked -->
25 <LinearLayout
26 android:id="@+id/search_box_start_search"
27 android:layout_height="wrap_content"
28 android:layout_width="0dp"
29 android:layout_weight="1"
30 android:gravity="center_vertical" >
31
32 <ImageView
33 android:id="@+id/search_magnifying_glass"
34 android:layout_height="@dimen/search_box_icon_size"
35 android:layout_width="@dimen/search_box_icon_size"
36 android:layout_margin="@dimen/search_box_icon_margin"
37 android:padding="@dimen/search_box_search_icon_padding"
38 android:src="@drawable/ic_ab_search"
Andrew Lee612c5df2014-05-30 14:21:33 -070039 android:importantForAccessibility="no"
40 android:tint="@color/searchbox_icon_tint" />
Yorke Lee11ca39e2014-05-19 20:31:37 -070041
42 <TextView
43 android:layout_width="wrap_content"
44 android:layout_height="@dimen/search_box_icon_size"
45 android:layout_marginLeft="@dimen/search_box_text_left_margin"
46 android:textSize="@dimen/search_text_size"
47 android:fontFamily="@string/search_font_family"
48 android:textColor="@color/searchbox_text_color"
49 android:textColorHint="@color/searchbox_hint_text_color"
50 android:gravity="center_vertical"
51 android:hint="@string/dialer_hint_find_contact" />
52
53 </LinearLayout>
54
55 <ImageView
56 android:id="@+id/voice_search_button"
57 android:layout_height="@dimen/search_box_icon_size"
58 android:layout_width="@dimen/search_box_icon_size"
59 android:layout_margin="@dimen/search_box_icon_margin"
60 android:src="@drawable/ic_voice_search"
61 android:clickable="true"
62 android:contentDescription="@string/description_start_voice_search"
Andrew Lee612c5df2014-05-30 14:21:33 -070063 android:background="?android:attr/selectableItemBackground"
64 android:tint="@color/searchbox_icon_tint" />
65
Yorke Lee11ca39e2014-05-19 20:31:37 -070066
67 <ImageButton
68 android:id="@+id/dialtacts_options_menu_button"
69 android:layout_width="@dimen/search_box_icon_size"
70 android:layout_height="@dimen/search_box_icon_size"
71 android:layout_margin="@dimen/search_box_icon_margin"
72 android:background="?android:attr/selectableItemBackground"
73 android:src="@drawable/ic_overflow_menu"
74 android:contentDescription="@string/action_menu_overflow_description"
Andrew Lee612c5df2014-05-30 14:21:33 -070075 android:tint="@color/searchbox_icon_tint" />
Yorke Lee11ca39e2014-05-19 20:31:37 -070076
77 </LinearLayout>
78
Brian Attwell70c91b72014-05-30 17:16:08 -070079 <include layout="@layout/search_bar_expanded" />
Yorke Lee11ca39e2014-05-19 20:31:37 -070080
81</view>