blob: 50049afa058bc1269ce02e66e730b2e362fe7a99 [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 Leea5d5cdf2014-04-22 17:20:00 -070016<RelativeLayout
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"
Yorke Leea5d5cdf2014-04-22 17:20:00 -070030 android:layout_height="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070031 android:clipChildren="false">
32 <!-- The main contacts grid -->
33 <FrameLayout
Ihab Awad526c0b82014-02-27 12:55:36 -080034 android:layout_height="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070035 android:layout_width="match_parent"
36 android:id="@+id/dialtacts_frame"
Ihab Awad526c0b82014-02-27 12:55:36 -080037 android:clipChildren="false"
Yorke Lee86e21f72014-04-02 16:49:38 -070038 >
39 </FrameLayout>
40 <!-- Search entry box and remove view -->
41 <FrameLayout
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:layout_alignParentTop="true"
45 android:id="@+id/search_and_remove_view_container"
46 android:visibility="gone"
47 >
48 <!-- TODO: This is set to visibility:gone for now, should be removed entirely -->
49 <LinearLayout
Tyler Gunna8ff9752014-02-24 11:57:57 -080050 android:layout_width="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070051 android:layout_height="@dimen/search_box_height"
52 android:id="@+id/search_view_container"
53 android:orientation="horizontal"
54 android:layout_marginTop="@dimen/search_top_margin"
55 android:layout_marginBottom="@dimen/search_bottom_margin"
56 android:layout_marginLeft="@dimen/search_margin_horizontal"
57 android:layout_marginRight="@dimen/search_margin_horizontal"
58 android:paddingLeft="@dimen/search_box_left_padding"
59 android:paddingRight="@dimen/search_box_right_padding"
60 android:background="@drawable/search_bg"
61 android:gravity="center_vertical"
62 android:visibility="gone"
Tyler Gunna8ff9752014-02-24 11:57:57 -080063 >
Yorke Lee86e21f72014-04-02 16:49:38 -070064 <EditText
65 android:id="@+id/search_view"
Ihab Awad526c0b82014-02-27 12:55:36 -080066 android:layout_width="match_parent"
Yorke Lee86e21f72014-04-02 16:49:38 -070067 android:layout_height="@dimen/search_box_icon_size"
68 android:layout_weight="1"
69 android:layout_marginLeft="@dimen/search_box_text_left_margin"
70 android:textSize="@dimen/search_text_size"
71 android:fontFamily="@string/search_font_family"
72 android:textColor="@color/searchbox_text_color"
73 android:textColorHint="@color/searchbox_hint_text_color"
74 android:inputType="textFilter"/>
75 <ImageView
76 android:id="@+id/search_close_button"
77 android:layout_height="@dimen/search_box_icon_size"
78 android:layout_width="@dimen/search_box_icon_size"
79 android:padding="6dp"
80 android:src="@drawable/ic_close_dk"
81 android:clickable="true"
82 android:background="?android:attr/selectableItemBackground"
83 android:contentDescription="@string/description_clear_search"
84 android:visibility="gone" />
85 <ImageView
86 android:id="@+id/voice_search_button"
87 android:layout_height="@dimen/search_box_icon_size"
88 android:layout_width="@dimen/search_box_icon_size"
89 android:padding="@dimen/search_box_icon_padding"
90 android:src="@drawable/ic_voice_search"
91 android:clickable="true"
92 android:contentDescription="@string/description_start_voice_search"
93 android:background="?android:attr/selectableItemBackground" />
94 </LinearLayout>
95 <com.android.dialer.list.RemoveView
96 android:layout_width="match_parent"
97 android:layout_height="56dp"
98 android:id="@+id/remove_view_container"
99 android:orientation="horizontal"
100 android:gravity="center">
101 <ImageView
102 android:layout_width="wrap_content"
103 android:layout_height="wrap_content"
104 android:id="@+id/remove_view_icon"
105 android:src="@drawable/ic_remove"
106 android:contentDescription="@string/remove_contact"
Ihab Awad526c0b82014-02-27 12:55:36 -0800107 />
Yorke Lee86e21f72014-04-02 16:49:38 -0700108 <TextView
109 android:layout_width="wrap_content"
110 android:layout_height="wrap_content"
111 android:id="@+id/remove_view_text"
112 android:textSize="@dimen/remove_text_size"
113 android:textColor="@color/remove_text_color"
114 android:text="@string/remove_contact"
115 />
116 </com.android.dialer.list.RemoveView>
117 </FrameLayout>
118 </RelativeLayout>
Ihab Awad526c0b82014-02-27 12:55:36 -0800119 <FrameLayout
Yorke Leea5d5cdf2014-04-22 17:20:00 -0700120 android:layout_height="@dimen/floating_action_button_height"
121 android:layout_width="@dimen/floating_action_button_width"
122 android:layout_marginBottom="@dimen/floating_action_button_margin_bottom"
123 android:id="@+id/floating_action_button"
124 android:background="@color/actionbar_background_color"
125 android:layout_centerHorizontal="true"
126 android:layout_alignParentBottom="true" >
Ihab Awad526c0b82014-02-27 12:55:36 -0800127 <ImageButton
128 android:id="@+id/dialpad_button"
Yorke Leea5d5cdf2014-04-22 17:20:00 -0700129 android:layout_width="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -0800130 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -0800131 android:background="?android:attr/selectableItemBackground"
132 android:contentDescription="@string/action_menu_dialpad_button"
133 android:src="@drawable/ic_menu_dialpad_lt"/>
134 <ImageButton
135 android:id="@+id/dial_button"
Yorke Leea5d5cdf2014-04-22 17:20:00 -0700136 android:layout_width="match_parent"
137 android:layout_height="match_parent"
Ihab Awad526c0b82014-02-27 12:55:36 -0800138 android:background="@drawable/btn_call"
139 android:contentDescription="@string/description_dial_button"
140 android:src="@drawable/ic_dial_action_call"
Yorke Lee8898cd02013-08-08 10:24:27 -0700141 android:visibility="gone" />
Ihab Awad526c0b82014-02-27 12:55:36 -0800142 </FrameLayout>
Yorke Leea5d5cdf2014-04-22 17:20:00 -0700143</RelativeLayout>