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 <FrameLayout 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:focusableInTouchMode="true" 22 android:clipChildren="false" 23 android:id="@+id/dialtacts_container" 24 > 25 <!-- Overlapping dialpad fragment is inserted here --> 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:clipChildren="false" 30 android:orientation="vertical" > 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:id="@+id/search_view_container" 35 android:orientation="vertical" 36 > 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="match_parent" 40 android:orientation="horizontal" 41 android:paddingLeft="16dp" 42 android:paddingRight="23dp" 43 android:background="@color/searchbox_background_color" 44 android:gravity="center_vertical"> 45 <EditText 46 android:id="@+id/search_view" 47 android:layout_width="0dp" 48 android:layout_height="56dp" 49 android:layout_weight="1" 50 android:textSize="@dimen/search_text_size" 51 android:inputType="textFilter"/> 52 <ImageView 53 android:id="@+id/search_close_button" 54 android:layout_height="40dp" 55 android:layout_width="40dp" 56 android:padding="6dp" 57 android:src="@drawable/ic_close_dk" 58 android:clickable="true" 59 android:background="?android:attr/selectableItemBackground" 60 android:visibility="gone" /> 61 <ImageView 62 android:id="@+id/voice_search_button" 63 android:layout_height="40dp" 64 android:layout_width="40dp" 65 android:padding="3dp" 66 android:src="@drawable/ic_voice_search" 67 android:clickable="true" 68 android:contentDescription="@string/description_start_voice_search" 69 android:background="?android:attr/selectableItemBackground" /> 70 </LinearLayout> 71 <View 72 android:id="@+id/searchbox_divider" 73 android:layout_height="1dp" 74 android:layout_width="match_parent" 75 android:background="@color/background_dialer_light" /> 76 </LinearLayout> 77 <FrameLayout 78 android:layout_height="0dp" 79 android:layout_weight="1" 80 android:layout_width="match_parent" 81 android:id="@+id/dialtacts_frame" 82 android:clipChildren="false"> 83 </FrameLayout> 84 <FrameLayout 85 android:layout_height="@dimen/fake_action_bar_height" 86 android:layout_width="match_parent" 87 android:id="@+id/fake_action_bar" 88 android:background="@color/actionbar_background_color"> 89 <ImageButton 90 android:id="@+id/call_history_button" 91 android:layout_width="@dimen/fake_menu_button_min_width" 92 android:layout_height="match_parent" 93 android:layout_gravity="bottom|start" 94 android:background="?android:attr/selectableItemBackground" 95 android:contentDescription="@string/action_menu_call_history_description" 96 android:src="@drawable/ic_menu_history_dk"/> 97 <ImageButton 98 android:id="@+id/dialpad_button" 99 android:layout_width="@dimen/fake_menu_button_min_width" 100 android:layout_height="match_parent" 101 android:layout_gravity="bottom|center" 102 android:background="?android:attr/selectableItemBackground" 103 android:contentDescription="@string/action_menu_dialpad_button" 104 android:src="@drawable/ic_menu_dialpad_dk"/> 105 <ImageButton 106 android:id="@+id/overflow_menu" 107 android:layout_width="@dimen/fake_menu_button_min_width" 108 android:layout_height="match_parent" 109 android:layout_gravity="bottom|end" 110 android:src="@drawable/ic_menu_overflow_dk" 111 android:contentDescription="@string/action_menu_overflow_description" 112 android:background="?android:attr/selectableItemBackground"/> 113 </FrameLayout> 114 <View 115 android:id="@+id/dialtacts_bottom_padding" 116 android:layout_width="match_parent" 117 android:layout_height="?android:attr/actionBarSize" 118 android:visibility="gone" /> 119 </LinearLayout> 120 </FrameLayout> 121