blob: 2513216fc556225bcedd402bcb1f97bba38c2300 [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"
Yorke Lee86e21f72014-04-02 16:49:38 -070018 android:id="@+id/dialtacts_mainlayout"
Chiao Cheng94b10b52012-08-17 16:59:12 -070019 android:layout_width="match_parent"
20 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -080021 android:orientation="vertical"
Yorke Lee86e21f72014-04-02 16:49:38 -070022 android:focusable="true"
Yorke Lee8898cd02013-08-08 10:24:27 -070023 android:focusableInTouchMode="true"
24 android:clipChildren="false"
Yorke Lee9e91bb02014-03-05 17:50:50 -080025 android:background="@color/background_dialer_light"
Chiao Cheng94b10b52012-08-17 16:59:12 -070026 >
Yorke Lee86e21f72014-04-02 16:49:38 -070027 <RelativeLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080028 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"
Yorke Lee86e21f72014-04-02 16:49:38 -070031 android:layout_weight="1"
32 android:clipChildren="false">
33 <!-- The main contacts grid -->
34 <FrameLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080035 android:layout_height="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070036 android:layout_width="match_parent"
37 android:id="@+id/dialtacts_frame"
Ihab Awad526c0b82014-02-27 12:55:36 -080038 android:clipChildren="false"
Yorke Lee86e21f72014-04-02 16:49:38 -070039 >
40 </FrameLayout>
41 <!-- Search entry box and remove view -->
42 <FrameLayout
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_alignParentTop="true"
46 android:id="@+id/search_and_remove_view_container"
47 android:visibility="gone"
48 >
49 <!-- TODO: This is set to visibility:gone for now, should be removed entirely -->
50 <LinearLayout
Tyler Gunna8ff9752014-02-24 11:57:57 -080051 android:layout_width="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070052 android:layout_height="@dimen/search_box_height"
53 android:id="@+id/search_view_container"
54 android:orientation="horizontal"
55 android:layout_marginTop="@dimen/search_top_margin"
56 android:layout_marginBottom="@dimen/search_bottom_margin"
57 android:layout_marginLeft="@dimen/search_margin_horizontal"
58 android:layout_marginRight="@dimen/search_margin_horizontal"
59 android:paddingLeft="@dimen/search_box_left_padding"
60 android:paddingRight="@dimen/search_box_right_padding"
61 android:background="@drawable/search_bg"
62 android:gravity="center_vertical"
63 android:visibility="gone"
Tyler Gunna8ff9752014-02-24 11:57:57 -080064 >
Yorke Lee86e21f72014-04-02 16:49:38 -070065 <EditText
66 android:id="@+id/search_view"
Ihab Awad526c0b82014-02-27 12:55:36 -080067 android:layout_width="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070068 android:layout_height="@dimen/search_box_icon_size"
69 android:layout_weight="1"
70 android:layout_marginLeft="@dimen/search_box_text_left_margin"
71 android:textSize="@dimen/search_text_size"
72 android:fontFamily="@string/search_font_family"
73 android:textColor="@color/searchbox_text_color"
74 android:textColorHint="@color/searchbox_hint_text_color"
75 android:inputType="textFilter"/>
76 <ImageView
77 android:id="@+id/search_close_button"
78 android:layout_height="@dimen/search_box_icon_size"
79 android:layout_width="@dimen/search_box_icon_size"
80 android:padding="6dp"
81 android:src="@drawable/ic_close_dk"
82 android:clickable="true"
83 android:background="?android:attr/selectableItemBackground"
84 android:contentDescription="@string/description_clear_search"
85 android:visibility="gone" />
86 <ImageView
87 android:id="@+id/voice_search_button"
88 android:layout_height="@dimen/search_box_icon_size"
89 android:layout_width="@dimen/search_box_icon_size"
90 android:padding="@dimen/search_box_icon_padding"
91 android:src="@drawable/ic_voice_search"
92 android:clickable="true"
93 android:contentDescription="@string/description_start_voice_search"
94 android:background="?android:attr/selectableItemBackground" />
95 </LinearLayout>
96 <com.android.dialer.list.RemoveView
97 android:layout_width="match_parent"
98 android:layout_height="56dp"
99 android:id="@+id/remove_view_container"
100 android:orientation="horizontal"
101 android:gravity="center">
102 <ImageView
103 android:layout_width="wrap_content"
104 android:layout_height="wrap_content"
105 android:id="@+id/remove_view_icon"
106 android:src="@drawable/ic_remove"
107 android:contentDescription="@string/remove_contact"
Ihab Awad526c0b82014-02-27 12:55:36 -0800108 />
Yorke Lee86e21f72014-04-02 16:49:38 -0700109 <TextView
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:id="@+id/remove_view_text"
113 android:textSize="@dimen/remove_text_size"
114 android:textColor="@color/remove_text_color"
115 android:text="@string/remove_contact"
116 />
117 </com.android.dialer.list.RemoveView>
118 </FrameLayout>
119 </RelativeLayout>
120 <!-- TODO: To be removed entirely and replaced with a floating action button -->
Ihab Awad526c0b82014-02-27 12:55:36 -0800121 <FrameLayout
122 android:layout_height="@dimen/fake_action_bar_height"
123 android:layout_width="match_parent"
124 android:id="@+id/fake_action_bar"
125 android:background="@color/actionbar_background_color">
126 <ImageButton
127 android:id="@+id/call_history_button"
128 android:layout_width="@dimen/fake_menu_button_min_width"
129 android:layout_height="match_parent"
130 android:layout_gravity="bottom|start"
131 android:background="?android:attr/selectableItemBackground"
132 android:contentDescription="@string/action_menu_call_history_description"
133 android:src="@drawable/ic_menu_history_lt"/>
134 <ImageButton
135 android:id="@+id/dialpad_button"
136 android:layout_width="@dimen/fake_menu_button_min_width"
137 android:layout_height="match_parent"
138 android:layout_gravity="bottom|center"
139 android:background="?android:attr/selectableItemBackground"
140 android:contentDescription="@string/action_menu_dialpad_button"
141 android:src="@drawable/ic_menu_dialpad_lt"/>
142 <ImageButton
143 android:id="@+id/dial_button"
Yorke Lee86e21f72014-04-02 16:49:38 -0700144 android:layout_width="@dimen/fake_action_bar_height"
145 android:layout_height="@dimen/fake_action_bar_height"
Ihab Awad526c0b82014-02-27 12:55:36 -0800146 android:layout_gravity="bottom|center"
147 android:background="@drawable/btn_call"
148 android:contentDescription="@string/description_dial_button"
149 android:src="@drawable/ic_dial_action_call"
Yorke Lee8898cd02013-08-08 10:24:27 -0700150 android:visibility="gone" />
Ihab Awad526c0b82014-02-27 12:55:36 -0800151 <ImageButton
Yorke Lee86e21f72014-04-02 16:49:38 -0700152 android:id="@+id/overflow_menu_button"
Ihab Awad526c0b82014-02-27 12:55:36 -0800153 android:layout_width="@dimen/fake_menu_button_min_width"
154 android:layout_height="match_parent"
155 android:layout_gravity="bottom|end"
Yorke Lee86e21f72014-04-02 16:49:38 -0700156 android:visibility="gone"
Ihab Awad526c0b82014-02-27 12:55:36 -0800157 android:src="@drawable/ic_menu_overflow_lt"
158 android:contentDescription="@string/action_menu_overflow_description"
159 android:background="?android:attr/selectableItemBackground"/>
160 </FrameLayout>
161</LinearLayout>