blob: 6eea6335037cf3f880836fecb397fe3bde20ec71 [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"
Chiao Cheng94b10b52012-08-17 16:59:12 -070024 >
Ihab Awad526c0b82014-02-27 12:55:36 -080025
26 <FrameLayout
27 android:id="@+id/dialtacts_container"
Chiao Cheng94b10b52012-08-17 16:59:12 -070028 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080029 android:layout_height="0dp"
30 android:layout_weight="1">
Tyler Gunna8ff9752014-02-24 11:57:57 -080031
Ihab Awad526c0b82014-02-27 12:55:36 -080032 <LinearLayout
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:clipChildren="false"
36 android:orientation="vertical" >
37
38 <!-- Search entry box and remove view -->
Tyler Gunna8ff9752014-02-24 11:57:57 -080039 <FrameLayout
Tyler Gunna8ff9752014-02-24 11:57:57 -080040 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080041 android:layout_height="wrap_content"
Yorke Lee94f49042014-03-03 14:03:08 -080042 android:id="@+id/search_and_remove_view_container"
Tyler Gunna8ff9752014-02-24 11:57:57 -080043 >
Ihab Awad526c0b82014-02-27 12:55:36 -080044 <LinearLayout
45 android:layout_width="match_parent"
46 android:layout_height="@dimen/search_box_height"
47 android:id="@+id/search_view_container"
48 android:orientation="horizontal"
49 android:layout_marginTop="@dimen/search_top_margin"
50 android:layout_marginBottom="@dimen/search_bottom_margin"
51 android:layout_marginLeft="@dimen/search_margin_horizontal"
52 android:layout_marginRight="@dimen/search_margin_horizontal"
53 android:paddingLeft="@dimen/search_box_left_padding"
54 android:paddingRight="@dimen/search_box_right_padding"
55 android:background="@drawable/search_bg"
56 android:gravity="center_vertical"
57 >
58 <EditText
59 android:id="@+id/search_view"
60 android:layout_width="match_parent"
61 android:layout_height="@dimen/search_box_icon_size"
62 android:layout_weight="1"
63 android:layout_marginLeft="@dimen/search_box_text_left_margin"
64 android:textSize="@dimen/search_text_size"
65 android:fontFamily="@string/search_font_family"
66 android:textColor="@color/searchbox_text_color"
67 android:inputType="textFilter"/>
68 <ImageView
69 android:id="@+id/search_close_button"
70 android:layout_height="@dimen/search_box_icon_size"
71 android:layout_width="@dimen/search_box_icon_size"
72 android:padding="6dp"
73 android:src="@drawable/ic_close_dk"
74 android:clickable="true"
75 android:background="?android:attr/selectableItemBackground"
76 android:contentDescription="@string/description_clear_search"
77 android:visibility="gone" />
78 <ImageView
79 android:id="@+id/voice_search_button"
80 android:layout_height="@dimen/search_box_icon_size"
81 android:layout_width="@dimen/search_box_icon_size"
82 android:padding="@dimen/search_box_icon_padding"
83 android:src="@drawable/ic_voice_search"
84 android:clickable="true"
85 android:contentDescription="@string/description_start_voice_search"
86 android:background="?android:attr/selectableItemBackground" />
87 </LinearLayout>
88 <com.android.dialer.list.RemoveView
89 android:layout_width="match_parent"
90 android:layout_height="56dp"
91 android:id="@+id/remove_view_container"
92 android:orientation="horizontal"
93 android:gravity="center"
94 android:visibility="gone">
95 <ImageView
96 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
98 android:id="@+id/remove_view_icon"
99 android:src="@drawable/ic_remove"
100 android:contentDescription="@string/remove_contact"
101 />
102 <TextView
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:id="@+id/remove_view_text"
106 android:textSize="@dimen/remove_text_size"
107 android:textColor="@color/remove_text_color"
108 android:text="@string/remove_contact"
109 />
110 </com.android.dialer.list.RemoveView>
Tyler Gunna8ff9752014-02-24 11:57:57 -0800111 </FrameLayout>
Tyler Gunna8ff9752014-02-24 11:57:57 -0800112
Ihab Awad526c0b82014-02-27 12:55:36 -0800113 <!-- Relative Layout is used to contain the main contacts grid and the thin translucent
114 horizontal divider line at the bottom of the contacts grid above the menu bar. -->
115 <RelativeLayout android:layout_width="match_parent"
116 android:layout_height="0dp"
117 android:layout_weight="1"
118 android:clipChildren="false"
119 >
120 <!-- The main contacts grid -->
121 <FrameLayout
122 android:layout_height="match_parent"
123 android:layout_width="match_parent"
124 android:id="@+id/dialtacts_frame"
125 android:clipChildren="false"
126 android:layout_alignParentBottom="true"
127 android:layout_alignParentTop="true"
128 android:layout_alignParentLeft="true"
129 android:layout_alignParentRight="true"
130 >
131 </FrameLayout>
132 <!-- Thin translucent horizontal line at the bottom of the contacts grid. Floats
133 above the contacts grid and has a translucent color. -->
134 <View
135 android:layout_height="2dp"
136 android:layout_width="match_parent"
137 android:background="@color/contacts_grid_bottom_border_color"
138 android:layout_alignParentBottom="true"
139 android:layout_alignParentLeft="true"
140 android:layout_alignParentRight="true"
141 />
142 </RelativeLayout>
Yorke Leeb0d19762014-03-05 14:43:28 -0800143 <Space
144 android:id="@+id/contact_tile_frame_spacer"
145 android:layout_height="wrap_content"
146 android:layout_width="match_parent"
147 android:layout_alignParentBottom="true"
148 android:visibility="gone"/>
Ihab Awad526c0b82014-02-27 12:55:36 -0800149 </LinearLayout>
150 </FrameLayout>
151
152 <!-- Fake action bar -->
153 <FrameLayout
154 android:layout_height="@dimen/fake_action_bar_height"
155 android:layout_width="match_parent"
156 android:id="@+id/fake_action_bar"
157 android:background="@color/actionbar_background_color">
158 <ImageButton
159 android:id="@+id/call_history_button"
160 android:layout_width="@dimen/fake_menu_button_min_width"
161 android:layout_height="match_parent"
162 android:layout_gravity="bottom|start"
163 android:background="?android:attr/selectableItemBackground"
164 android:contentDescription="@string/action_menu_call_history_description"
165 android:src="@drawable/ic_menu_history_lt"/>
166 <ImageButton
167 android:id="@+id/dialpad_button"
168 android:layout_width="@dimen/fake_menu_button_min_width"
169 android:layout_height="match_parent"
170 android:layout_gravity="bottom|center"
171 android:background="?android:attr/selectableItemBackground"
172 android:contentDescription="@string/action_menu_dialpad_button"
173 android:src="@drawable/ic_menu_dialpad_lt"/>
174 <ImageButton
175 android:id="@+id/dial_button"
176 android:layout_width="@dimen/fake_menu_button_min_width"
177 android:layout_height="match_parent"
178 android:layout_gravity="bottom|center"
179 android:background="@drawable/btn_call"
180 android:contentDescription="@string/description_dial_button"
181 android:src="@drawable/ic_dial_action_call"
Yorke Lee8898cd02013-08-08 10:24:27 -0700182 android:visibility="gone" />
Ihab Awad526c0b82014-02-27 12:55:36 -0800183 <ImageButton
184 android:id="@+id/overflow_menu"
185 android:layout_width="@dimen/fake_menu_button_min_width"
186 android:layout_height="match_parent"
187 android:layout_gravity="bottom|end"
188 android:src="@drawable/ic_menu_overflow_lt"
189 android:contentDescription="@string/action_menu_overflow_description"
190 android:background="?android:attr/selectableItemBackground"/>
191 </FrameLayout>
192</LinearLayout>