1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/top" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical" 22 android:paddingStart="@dimen/dialpad_horizontal_margin" 23 android:paddingEnd="@dimen/dialpad_horizontal_margin" 24 android:layoutDirection="ltr" > 25 26 <!-- Text field and possibly soft menu button above the keypad where 27 the digits are displayed. --> 28 <LinearLayout 29 android:id="@+id/digits_container" 30 android:layout_width="match_parent" 31 android:layout_height="0px" 32 android:layout_weight="@integer/dialpad_layout_weight_digits" 33 android:layout_marginTop="@dimen/dialpad_vertical_margin" 34 android:gravity="center" 35 android:background="@drawable/dialpad_background" > 36 37 <com.android.dialer.dialpad.DigitsEditText 38 android:id="@+id/digits" 39 android:layout_width="0dip" 40 android:layout_weight="1" 41 android:layout_height="match_parent" 42 android:gravity="center" 43 android:textAppearance="@style/DialtactsDigitsTextAppearance" 44 android:textColor="?android:attr/textColorPrimary" 45 android:nextFocusRight="@+id/overflow_menu" 46 android:background="@android:color/transparent" /> 47 48 <ImageButton 49 android:id="@+id/deleteButton" 50 android:layout_width="56dip" 51 android:layout_height="match_parent" 52 android:layout_gravity="center_vertical" 53 android:gravity="center" 54 android:state_enabled="false" 55 android:background="?android:attr/selectableItemBackground" 56 android:contentDescription="@string/description_delete_button" 57 android:src="@drawable/ic_dial_action_delete" /> 58 </LinearLayout> 59 60 <!-- Smart dial suggestion section. 61 sp is used here for this layout instead of dp in order for it to resize as 62 appropriate when the font size increases. This is a one-time exception that is 63 ok in this case because there is space for the suggestion strip to expand. --> 64 <RelativeLayout 65 android:id="@+id/dialpad_smartdial_container" 66 android:layout_width="match_parent" 67 android:layout_height="50sp" 68 android:layout_marginTop="@dimen/dialpad_vertical_margin"> 69 <View 70 android:id="@+id/dialpad_smartdial_list_background" 71 android:layout_width="match_parent" 72 android:layout_height="match_parent" 73 android:background="@drawable/dialpad_background"> 74 </View> 75 <LinearLayout 76 android:id="@+id/dialpad_smartdial_list" 77 android:layout_width="match_parent" 78 android:layout_height="match_parent" 79 android:orientation="horizontal" 80 android:gravity="center"> 81 </LinearLayout> 82 </RelativeLayout> 83 84 <!-- Keypad section --> 85 <include layout="@layout/dialpad" /> 86 87 <View style="@style/DialpadHorizontalSeparator"/> 88 89 <!-- left and right paddings will be modified by the code. See DialpadFragment. --> 90 <FrameLayout 91 android:id="@+id/dialButtonContainer" 92 android:layout_width="match_parent" 93 android:layout_height="0px" 94 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" 95 android:layout_gravity="center_horizontal" 96 android:background="@drawable/dialpad_background"> 97 98 <ImageButton 99 android:id="@+id/dialButton" 100 android:layout_width="match_parent" 101 android:layout_height="match_parent" 102 android:layout_gravity="center" 103 android:state_enabled="false" 104 android:background="@drawable/btn_call" 105 android:contentDescription="@string/description_dial_button" 106 android:src="@drawable/ic_dial_action_call" /> 107 108 </FrameLayout> 109 110 <!-- "Dialpad chooser" UI, shown only when the user brings up the 111 Dialer while a call is already in progress. 112 When this UI is visible, the other Dialer elements 113 (the textfield/button and the dialpad) are hidden. --> 114 <ListView android:id="@+id/dialpadChooser" 115 android:layout_width="match_parent" 116 android:layout_height="1dip" 117 android:layout_weight="1" 118 /> 119 120 </LinearLayout> 121