1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2013 The Android Open Source Project 3 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 --> 16 <LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:focusable="true" 21 android:orientation="vertical" 22 android:focusableInTouchMode="true" 23 android:clipChildren="false" 24 > 25 26 <FrameLayout 27 android:id="@+id/dialtacts_container" 28 android:layout_width="match_parent" 29 android:layout_height="0dp" 30 android:layout_weight="1"> 31 32 <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 --> 39 <FrameLayout 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:id="@+id/search_and_remove_view_container" 43 > 44 <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:textColorHint="@color/searchbox_hint_text_color" 68 android:inputType="textFilter"/> 69 <ImageView 70 android:id="@+id/search_close_button" 71 android:layout_height="@dimen/search_box_icon_size" 72 android:layout_width="@dimen/search_box_icon_size" 73 android:padding="6dp" 74 android:src="@drawable/ic_close_dk" 75 android:clickable="true" 76 android:background="?android:attr/selectableItemBackground" 77 android:contentDescription="@string/description_clear_search" 78 android:visibility="gone" /> 79 <ImageView 80 android:id="@+id/voice_search_button" 81 android:layout_height="@dimen/search_box_icon_size" 82 android:layout_width="@dimen/search_box_icon_size" 83 android:padding="@dimen/search_box_icon_padding" 84 android:src="@drawable/ic_voice_search" 85 android:clickable="true" 86 android:contentDescription="@string/description_start_voice_search" 87 android:background="?android:attr/selectableItemBackground" /> 88 </LinearLayout> 89 <com.android.dialer.list.RemoveView 90 android:layout_width="match_parent" 91 android:layout_height="56dp" 92 android:id="@+id/remove_view_container" 93 android:orientation="horizontal" 94 android:gravity="center" 95 android:visibility="gone"> 96 <ImageView 97 android:layout_width="wrap_content" 98 android:layout_height="wrap_content" 99 android:id="@+id/remove_view_icon" 100 android:src="@drawable/ic_remove" 101 android:contentDescription="@string/remove_contact" 102 /> 103 <TextView 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:id="@+id/remove_view_text" 107 android:textSize="@dimen/remove_text_size" 108 android:textColor="@color/remove_text_color" 109 android:text="@string/remove_contact" 110 /> 111 </com.android.dialer.list.RemoveView> 112 </FrameLayout> 113 114 <!-- Relative Layout is used to contain the main contacts grid and the thin translucent 115 horizontal divider line at the bottom of the contacts grid above the menu bar. --> 116 <RelativeLayout android:layout_width="match_parent" 117 android:layout_height="0dp" 118 android:layout_weight="1" 119 android:clipChildren="false" 120 > 121 <!-- The main contacts grid --> 122 <FrameLayout 123 android:layout_height="match_parent" 124 android:layout_width="match_parent" 125 android:id="@+id/dialtacts_frame" 126 android:clipChildren="false" 127 android:layout_alignParentBottom="true" 128 android:layout_alignParentTop="true" 129 android:layout_alignParentLeft="true" 130 android:layout_alignParentRight="true" 131 > 132 </FrameLayout> 133 <!-- Thin translucent horizontal line at the bottom of the contacts grid. Floats 134 above the contacts grid and has a translucent color. --> 135 <View 136 android:layout_height="2dp" 137 android:layout_width="match_parent" 138 android:background="@color/contacts_grid_bottom_border_color" 139 android:layout_alignParentBottom="true" 140 android:layout_alignParentLeft="true" 141 android:layout_alignParentRight="true" 142 /> 143 </RelativeLayout> 144 <Space 145 android:id="@+id/contact_tile_frame_spacer" 146 android:layout_height="wrap_content" 147 android:layout_width="match_parent" 148 android:layout_alignParentBottom="true" 149 android:visibility="gone"/> 150 </LinearLayout> 151 </FrameLayout> 152 153 <!-- Fake action bar --> 154 <FrameLayout 155 android:layout_height="@dimen/fake_action_bar_height" 156 android:layout_width="match_parent" 157 android:id="@+id/fake_action_bar" 158 android:background="@color/actionbar_background_color"> 159 <ImageButton 160 android:id="@+id/call_history_button" 161 android:layout_width="@dimen/fake_menu_button_min_width" 162 android:layout_height="match_parent" 163 android:layout_gravity="bottom|start" 164 android:background="?android:attr/selectableItemBackground" 165 android:contentDescription="@string/action_menu_call_history_description" 166 android:src="@drawable/ic_menu_history_lt"/> 167 <ImageButton 168 android:id="@+id/dialpad_button" 169 android:layout_width="@dimen/fake_menu_button_min_width" 170 android:layout_height="match_parent" 171 android:layout_gravity="bottom|center" 172 android:background="?android:attr/selectableItemBackground" 173 android:contentDescription="@string/action_menu_dialpad_button" 174 android:src="@drawable/ic_menu_dialpad_lt"/> 175 <ImageButton 176 android:id="@+id/dial_button" 177 android:layout_width="@dimen/fake_menu_button_min_width" 178 android:layout_height="match_parent" 179 android:layout_gravity="bottom|center" 180 android:background="@drawable/btn_call" 181 android:contentDescription="@string/description_dial_button" 182 android:src="@drawable/ic_dial_action_call" 183 android:visibility="gone" /> 184 <ImageButton 185 android:id="@+id/overflow_menu" 186 android:layout_width="@dimen/fake_menu_button_min_width" 187 android:layout_height="match_parent" 188 android:layout_gravity="bottom|end" 189 android:src="@drawable/ic_menu_overflow_lt" 190 android:contentDescription="@string/action_menu_overflow_description" 191 android:background="?android:attr/selectableItemBackground"/> 192 </FrameLayout> 193 </LinearLayout> 194