blob: 2860886aaaaf9886618bd82c59e49b010a2c5ae3 [file] [log] [blame]
Chiao Cheng94b10b52012-08-17 16:59:12 -07001<?xml version="1.0" encoding="utf-8"?>
Yorke Lee8898cd02013-08-08 10:24:27 -07002<!-- Copyright (C) 2013 The Android Open Source Project
Chiao Cheng94b10b52012-08-17 16:59:12 -07003
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-->
Ihab Awad526c0b82014-02-27 12:55:36 -080016<LinearLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Chiao Cheng94b10b52012-08-17 16:59:12 -070018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070020 android:focusable="true"
Ihab Awad526c0b82014-02-27 12:55:36 -080021 android:orientation="vertical"
Yorke Lee8898cd02013-08-08 10:24:27 -070022 android:focusableInTouchMode="true"
23 android:clipChildren="false"
Yorke Lee9e91bb02014-03-05 17:50:50 -080024 android:background="@color/background_dialer_light"
Chiao Cheng94b10b52012-08-17 16:59:12 -070025 >
Ihab Awad526c0b82014-02-27 12:55:36 -080026
27 <FrameLayout
28 android:id="@+id/dialtacts_container"
Chiao Cheng94b10b52012-08-17 16:59:12 -070029 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080030 android:layout_height="0dp"
31 android:layout_weight="1">
Tyler Gunna8ff9752014-02-24 11:57:57 -080032
Ihab Awad526c0b82014-02-27 12:55:36 -080033 <LinearLayout
34 android:layout_width="match_parent"
35 android:layout_height="match_parent"
36 android:clipChildren="false"
37 android:orientation="vertical" >
38
39 <!-- Search entry box and remove view -->
Tyler Gunna8ff9752014-02-24 11:57:57 -080040 <FrameLayout
Tyler Gunna8ff9752014-02-24 11:57:57 -080041 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080042 android:layout_height="wrap_content"
Yorke Lee94f49042014-03-03 14:03:08 -080043 android:id="@+id/search_and_remove_view_container"
Tyler Gunna8ff9752014-02-24 11:57:57 -080044 >
Ihab Awad526c0b82014-02-27 12:55:36 -080045 <LinearLayout
46 android:layout_width="match_parent"
47 android:layout_height="@dimen/search_box_height"
48 android:id="@+id/search_view_container"
49 android:orientation="horizontal"
50 android:layout_marginTop="@dimen/search_top_margin"
51 android:layout_marginBottom="@dimen/search_bottom_margin"
52 android:layout_marginLeft="@dimen/search_margin_horizontal"
53 android:layout_marginRight="@dimen/search_margin_horizontal"
54 android:paddingLeft="@dimen/search_box_left_padding"
55 android:paddingRight="@dimen/search_box_right_padding"
56 android:background="@drawable/search_bg"
57 android:gravity="center_vertical"
58 >
59 <EditText
60 android:id="@+id/search_view"
61 android:layout_width="match_parent"
62 android:layout_height="@dimen/search_box_icon_size"
63 android:layout_weight="1"
64 android:layout_marginLeft="@dimen/search_box_text_left_margin"
65 android:textSize="@dimen/search_text_size"
66 android:fontFamily="@string/search_font_family"
67 android:textColor="@color/searchbox_text_color"
Tyler Gunna6dee452014-03-10 08:43:19 -070068 android:textColorHint="@color/searchbox_hint_text_color"
Ihab Awad526c0b82014-02-27 12:55:36 -080069 android:inputType="textFilter"/>
70 <ImageView
71 android:id="@+id/search_close_button"
72 android:layout_height="@dimen/search_box_icon_size"
73 android:layout_width="@dimen/search_box_icon_size"
74 android:padding="6dp"
75 android:src="@drawable/ic_close_dk"
76 android:clickable="true"
77 android:background="?android:attr/selectableItemBackground"
78 android:contentDescription="@string/description_clear_search"
79 android:visibility="gone" />
80 <ImageView
81 android:id="@+id/voice_search_button"
82 android:layout_height="@dimen/search_box_icon_size"
83 android:layout_width="@dimen/search_box_icon_size"
84 android:padding="@dimen/search_box_icon_padding"
85 android:src="@drawable/ic_voice_search"
86 android:clickable="true"
87 android:contentDescription="@string/description_start_voice_search"
88 android:background="?android:attr/selectableItemBackground" />
89 </LinearLayout>
90 <com.android.dialer.list.RemoveView
91 android:layout_width="match_parent"
92 android:layout_height="56dp"
93 android:id="@+id/remove_view_container"
94 android:orientation="horizontal"
95 android:gravity="center"
96 android:visibility="gone">
97 <ImageView
98 android:layout_width="wrap_content"
99 android:layout_height="wrap_content"
100 android:id="@+id/remove_view_icon"
101 android:src="@drawable/ic_remove"
102 android:contentDescription="@string/remove_contact"
103 />
104 <TextView
105 android:layout_width="wrap_content"
106 android:layout_height="wrap_content"
107 android:id="@+id/remove_view_text"
108 android:textSize="@dimen/remove_text_size"
109 android:textColor="@color/remove_text_color"
110 android:text="@string/remove_contact"
111 />
112 </com.android.dialer.list.RemoveView>
Tyler Gunna8ff9752014-02-24 11:57:57 -0800113 </FrameLayout>
Tyler Gunna8ff9752014-02-24 11:57:57 -0800114
Ihab Awad526c0b82014-02-27 12:55:36 -0800115 <!-- Relative Layout is used to contain the main contacts grid and the thin translucent
116 horizontal divider line at the bottom of the contacts grid above the menu bar. -->
117 <RelativeLayout android:layout_width="match_parent"
118 android:layout_height="0dp"
119 android:layout_weight="1"
120 android:clipChildren="false"
121 >
122 <!-- The main contacts grid -->
123 <FrameLayout
124 android:layout_height="match_parent"
125 android:layout_width="match_parent"
126 android:id="@+id/dialtacts_frame"
127 android:clipChildren="false"
128 android:layout_alignParentBottom="true"
129 android:layout_alignParentTop="true"
130 android:layout_alignParentLeft="true"
131 android:layout_alignParentRight="true"
132 >
133 </FrameLayout>
134 <!-- Thin translucent horizontal line at the bottom of the contacts grid. Floats
135 above the contacts grid and has a translucent color. -->
136 <View
137 android:layout_height="2dp"
138 android:layout_width="match_parent"
139 android:background="@color/contacts_grid_bottom_border_color"
140 android:layout_alignParentBottom="true"
141 android:layout_alignParentLeft="true"
142 android:layout_alignParentRight="true"
143 />
144 </RelativeLayout>
Yorke Leeb0d19762014-03-05 14:43:28 -0800145 <Space
146 android:id="@+id/contact_tile_frame_spacer"
147 android:layout_height="wrap_content"
148 android:layout_width="match_parent"
149 android:layout_alignParentBottom="true"
150 android:visibility="gone"/>
Ihab Awad526c0b82014-02-27 12:55:36 -0800151 </LinearLayout>
152 </FrameLayout>
153
154 <!-- Fake action bar -->
155 <FrameLayout
156 android:layout_height="@dimen/fake_action_bar_height"
157 android:layout_width="match_parent"
158 android:id="@+id/fake_action_bar"
159 android:background="@color/actionbar_background_color">
160 <ImageButton
161 android:id="@+id/call_history_button"
162 android:layout_width="@dimen/fake_menu_button_min_width"
163 android:layout_height="match_parent"
164 android:layout_gravity="bottom|start"
165 android:background="?android:attr/selectableItemBackground"
166 android:contentDescription="@string/action_menu_call_history_description"
167 android:src="@drawable/ic_menu_history_lt"/>
168 <ImageButton
169 android:id="@+id/dialpad_button"
170 android:layout_width="@dimen/fake_menu_button_min_width"
171 android:layout_height="match_parent"
172 android:layout_gravity="bottom|center"
173 android:background="?android:attr/selectableItemBackground"
174 android:contentDescription="@string/action_menu_dialpad_button"
175 android:src="@drawable/ic_menu_dialpad_lt"/>
176 <ImageButton
177 android:id="@+id/dial_button"
178 android:layout_width="@dimen/fake_menu_button_min_width"
179 android:layout_height="match_parent"
180 android:layout_gravity="bottom|center"
181 android:background="@drawable/btn_call"
182 android:contentDescription="@string/description_dial_button"
183 android:src="@drawable/ic_dial_action_call"
Yorke Lee8898cd02013-08-08 10:24:27 -0700184 android:visibility="gone" />
Ihab Awad526c0b82014-02-27 12:55:36 -0800185 <ImageButton
186 android:id="@+id/overflow_menu"
187 android:layout_width="@dimen/fake_menu_button_min_width"
188 android:layout_height="match_parent"
189 android:layout_gravity="bottom|end"
190 android:src="@drawable/ic_menu_overflow_lt"
191 android:contentDescription="@string/action_menu_overflow_description"
192 android:background="?android:attr/selectableItemBackground"/>
193 </FrameLayout>
194</LinearLayout>