blob: 9b8031efe7d889b51a4cda0680e1eef26f09a16c [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"
Yorke Leeec489fb2014-05-19 15:39:27 -070012 android:background="@drawable/rounded_corner"
Andrew Lee9da8fb42014-06-03 14:03:09 -070013 android:elevation="@dimen/search_box_elevation">
14
Yorke Lee11ca39e2014-05-19 20:31:37 -070015 <LinearLayout
16 android:id="@+id/search_box_collapsed"
17 android:layout_width="match_parent"
18 android:layout_height="match_parent"
Andrew Lee9da8fb42014-06-03 14:03:09 -070019 android:paddingStart="@dimen/search_box_left_padding"
20 android:paddingEnd="@dimen/search_box_right_padding"
Yorke Lee11ca39e2014-05-19 20:31:37 -070021 android:gravity="center_vertical"
22 android:orientation="horizontal" >
23
Andrew Lee9da8fb42014-06-03 14:03:09 -070024 <ImageView
25 android:id="@+id/search_magnifying_glass"
26 android:layout_height="@dimen/search_box_icon_size"
27 android:layout_width="@dimen/search_box_icon_size"
28 android:layout_margin="@dimen/search_box_icon_margin"
29 android:padding="@dimen/search_box_search_icon_padding"
30 android:src="@drawable/ic_ab_search"
31 android:importantForAccessibility="no"
32 android:tint="@color/searchbox_icon_tint" />
33
Yorke Lee11ca39e2014-05-19 20:31:37 -070034 <!-- Portion of the search box that starts a search when clicked -->
35 <LinearLayout
36 android:id="@+id/search_box_start_search"
37 android:layout_height="wrap_content"
38 android:layout_width="0dp"
39 android:layout_weight="1"
40 android:gravity="center_vertical" >
41
Yorke Lee11ca39e2014-05-19 20:31:37 -070042 <TextView
43 android:layout_width="wrap_content"
44 android:layout_height="@dimen/search_box_icon_size"
Andrew Lee9da8fb42014-06-03 14:03:09 -070045 android:layout_marginLeft="@dimen/search_box_collapsed_text_margin_left"
46 android:textSize="@dimen/search_collapsed_text_size"
Yorke Lee11ca39e2014-05-19 20:31:37 -070047 android:fontFamily="@string/search_font_family"
Yorke Lee11ca39e2014-05-19 20:31:37 -070048 android:textColorHint="@color/searchbox_hint_text_color"
49 android:gravity="center_vertical"
50 android:hint="@string/dialer_hint_find_contact" />
51
52 </LinearLayout>
53
54 <ImageView
55 android:id="@+id/voice_search_button"
56 android:layout_height="@dimen/search_box_icon_size"
57 android:layout_width="@dimen/search_box_icon_size"
58 android:layout_margin="@dimen/search_box_icon_margin"
59 android:src="@drawable/ic_voice_search"
60 android:clickable="true"
61 android:contentDescription="@string/description_start_voice_search"
Andrew Lee612c5df2014-05-30 14:21:33 -070062 android:background="?android:attr/selectableItemBackground"
63 android:tint="@color/searchbox_icon_tint" />
64
Yorke Lee11ca39e2014-05-19 20:31:37 -070065
66 <ImageButton
67 android:id="@+id/dialtacts_options_menu_button"
68 android:layout_width="@dimen/search_box_icon_size"
69 android:layout_height="@dimen/search_box_icon_size"
70 android:layout_margin="@dimen/search_box_icon_margin"
71 android:background="?android:attr/selectableItemBackground"
72 android:src="@drawable/ic_overflow_menu"
73 android:contentDescription="@string/action_menu_overflow_description"
Andrew Lee612c5df2014-05-30 14:21:33 -070074 android:tint="@color/searchbox_icon_tint" />
Yorke Lee11ca39e2014-05-19 20:31:37 -070075
76 </LinearLayout>
77
Brian Attwell70c91b72014-05-30 17:16:08 -070078 <include layout="@layout/search_bar_expanded" />
Yorke Lee11ca39e2014-05-19 20:31:37 -070079
80</view>