blob: 1a1a0b099725c51328bd1cb58ff4693a0952cbf8 [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-->
Yorke Lee8898cd02013-08-08 10:24:27 -070016<FrameLayout
17 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"
21 android:focusableInTouchMode="true"
22 android:clipChildren="false"
23 android:id="@+id/dialtacts_container"
Chiao Cheng94b10b52012-08-17 16:59:12 -070024 >
Yorke Lee8898cd02013-08-08 10:24:27 -070025 <!-- Overlapping dialpad fragment is inserted here -->
26 <LinearLayout
Chiao Cheng94b10b52012-08-17 16:59:12 -070027 android:layout_width="match_parent"
Yorke Lee8898cd02013-08-08 10:24:27 -070028 android:layout_height="match_parent"
29 android:clipChildren="false"
30 android:orientation="vertical" >
Yorke Leed5b5d0a2014-01-16 11:26:46 -080031 <FrameLayout
Yorke Lee8898cd02013-08-08 10:24:27 -070032 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
Yorke Lee3957b272013-09-30 18:35:23 -070034 >
35 <LinearLayout
36 android:layout_width="match_parent"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080037 android:layout_height="@dimen/search_box_height"
Yorke Leed5b5d0a2014-01-16 11:26:46 -080038 android:id="@+id/search_view_container"
Yorke Lee3957b272013-09-30 18:35:23 -070039 android:orientation="horizontal"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080040 android:layout_marginTop="@dimen/search_top_margin"
41 android:layout_marginBottom="@dimen/search_bottom_margin"
42 android:layout_marginLeft="@dimen/search_margin_horizontal"
43 android:layout_marginRight="@dimen/search_margin_horizontal"
44 android:paddingLeft="@dimen/search_box_left_padding"
45 android:paddingRight="@dimen/search_box_right_padding"
46 android:background="@drawable/search_bg"
Yorke Leed5b5d0a2014-01-16 11:26:46 -080047 android:gravity="center_vertical"
48 >
Yorke Lee3957b272013-09-30 18:35:23 -070049 <EditText
50 android:id="@+id/search_view"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080051 android:layout_width="match_parent"
52 android:layout_height="@dimen/search_box_icon_size"
Yorke Lee3957b272013-09-30 18:35:23 -070053 android:layout_weight="1"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080054 android:layout_marginLeft="@dimen/search_box_text_left_margin"
Yorke Lee3957b272013-09-30 18:35:23 -070055 android:textSize="@dimen/search_text_size"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080056 android:fontFamily="@string/search_font_family"
57 android:textColor="@color/searchbox_text_color"
Yorke Lee3957b272013-09-30 18:35:23 -070058 android:inputType="textFilter"/>
59 <ImageView
60 android:id="@+id/search_close_button"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080061 android:layout_height="@dimen/search_box_icon_size"
62 android:layout_width="@dimen/search_box_icon_size"
Yorke Lee3957b272013-09-30 18:35:23 -070063 android:padding="6dp"
64 android:src="@drawable/ic_close_dk"
65 android:clickable="true"
66 android:background="?android:attr/selectableItemBackground"
Yorke Leed5b5d0a2014-01-16 11:26:46 -080067 android:contentDescription="@string/description_clear_search"
Yorke Lee3957b272013-09-30 18:35:23 -070068 android:visibility="gone" />
69 <ImageView
70 android:id="@+id/voice_search_button"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -080071 android:layout_height="@dimen/search_box_icon_size"
72 android:layout_width="@dimen/search_box_icon_size"
73 android:padding="@dimen/search_box_icon_padding"
Yorke Lee3957b272013-09-30 18:35:23 -070074 android:src="@drawable/ic_voice_search"
75 android:clickable="true"
76 android:contentDescription="@string/description_start_voice_search"
77 android:background="?android:attr/selectableItemBackground" />
78 </LinearLayout>
Yorke Leed5b5d0a2014-01-16 11:26:46 -080079 <com.android.dialer.list.RemoveView
Yorke Lee3957b272013-09-30 18:35:23 -070080 android:layout_width="match_parent"
Yorke Leed5b5d0a2014-01-16 11:26:46 -080081 android:layout_height="56dp"
82 android:id="@+id/remove_view_container"
83 android:orientation="horizontal"
84 android:gravity="center"
85 android:visibility="gone">
86 <ImageView
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:id="@+id/remove_view_icon"
90 android:src="@drawable/ic_remove"
91 android:contentDescription="@string/remove_contact"
92 />
93 <TextView
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:id="@+id/remove_view_text"
97 android:textSize="@dimen/remove_text_size"
98 android:textColor="@color/remove_text_color"
99 android:text="@string/remove_contact"
100 />
101 </com.android.dialer.list.RemoveView>
102 </FrameLayout>
Tyler Gunnf2e6bb62014-02-24 11:57:57 -0800103
104 <!-- Relative Layout is used to contain the main contacts grid and the thin translucent
105 horizontal divider line at the bottom of the contacts grid above the menu bar. -->
106 <RelativeLayout android:layout_width="match_parent"
107 android:layout_height="0dp"
108 android:layout_weight="1"
109 android:clipChildren="false"
110 >
111 <!-- The main contacts grid -->
112 <FrameLayout
113 android:layout_height="match_parent"
114 android:layout_width="match_parent"
115 android:id="@+id/dialtacts_frame"
116 android:clipChildren="false"
117 android:layout_alignParentBottom="true"
118 android:layout_alignParentTop="true"
119 android:layout_alignParentLeft="true"
120 android:layout_alignParentRight="true"
121 >
122 </FrameLayout>
123 <!-- Thin translucent horizontal line at the bottom of the contacts grid. Floats above
124 the contacts grid and has a translucent color. -->
125 <View
126 android:layout_height="2dp"
127 android:layout_width="match_parent"
128 android:background="@color/contacts_grid_bottom_border_color"
129 android:layout_alignParentBottom="true"
130 android:layout_alignParentLeft="true"
131 android:layout_alignParentRight="true"
132 />
133 </RelativeLayout>
134
Yorke Leeb207f8a2013-08-29 18:51:06 -0700135 <FrameLayout
Yorke Lee41a24b42013-11-13 16:14:41 -0800136 android:layout_height="@dimen/fake_action_bar_height"
137 android:layout_width="match_parent"
138 android:id="@+id/fake_action_bar"
139 android:background="@color/actionbar_background_color">
140 <ImageButton
141 android:id="@+id/call_history_button"
142 android:layout_width="@dimen/fake_menu_button_min_width"
143 android:layout_height="match_parent"
144 android:layout_gravity="bottom|start"
145 android:background="?android:attr/selectableItemBackground"
146 android:contentDescription="@string/action_menu_call_history_description"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -0800147 android:src="@drawable/ic_menu_history_lt"/>
Yorke Lee41a24b42013-11-13 16:14:41 -0800148 <ImageButton
149 android:id="@+id/dialpad_button"
150 android:layout_width="@dimen/fake_menu_button_min_width"
151 android:layout_height="match_parent"
152 android:layout_gravity="bottom|center"
153 android:background="?android:attr/selectableItemBackground"
154 android:contentDescription="@string/action_menu_dialpad_button"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -0800155 android:src="@drawable/ic_menu_dialpad_lt"/>
Yorke Lee41a24b42013-11-13 16:14:41 -0800156 <ImageButton
157 android:id="@+id/overflow_menu"
158 android:layout_width="@dimen/fake_menu_button_min_width"
159 android:layout_height="match_parent"
160 android:layout_gravity="bottom|end"
Tyler Gunnf2e6bb62014-02-24 11:57:57 -0800161 android:src="@drawable/ic_menu_overflow_lt"
Yorke Lee41a24b42013-11-13 16:14:41 -0800162 android:contentDescription="@string/action_menu_overflow_description"
163 android:background="?android:attr/selectableItemBackground"/>
164 </FrameLayout>
Yorke Lee8898cd02013-08-08 10:24:27 -0700165 <View
166 android:id="@+id/dialtacts_bottom_padding"
167 android:layout_width="match_parent"
168 android:layout_height="?android:attr/actionBarSize"
169 android:visibility="gone" />
170 </LinearLayout>
Chiao Cheng94b10b52012-08-17 16:59:12 -0700171</FrameLayout>