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:paddingLeft="@dimen/dialpad_horizontal_margin" 23 android:paddingRight="@dimen/dialpad_horizontal_margin"> 24 25 <!-- Text field and possibly soft menu button above the keypad where 26 the digits are displayed. --> 27 <LinearLayout 28 android:id="@+id/digits_container" 29 android:layout_width="match_parent" 30 android:layout_height="0px" 31 android:layout_weight="@integer/dialpad_layout_weight_digits" 32 android:layout_marginTop="@dimen/dialpad_vertical_margin" 33 android:gravity="center" 34 android:background="@drawable/dialpad_background" > 35 36 <com.android.contacts.dialpad.DigitsEditText 37 android:id="@+id/digits" 38 android:layout_width="0dip" 39 android:layout_weight="1" 40 android:layout_height="match_parent" 41 android:gravity="center" 42 android:textAppearance="@style/DialtactsDigitsTextAppearance" 43 android:textColor="?android:attr/textColorPrimary" 44 android:nextFocusRight="@+id/overflow_menu" 45 android:background="@android:color/transparent" /> 46 47 <ImageButton 48 android:id="@+id/deleteButton" 49 android:layout_width="56dip" 50 android:layout_height="match_parent" 51 android:layout_gravity="center_vertical" 52 android:gravity="center" 53 android:state_enabled="false" 54 android:background="?android:attr/selectableItemBackground" 55 android:contentDescription="@string/description_delete_button" 56 android:src="@drawable/ic_dial_action_delete" /> 57 </LinearLayout> 58 59 <!-- Keypad section --> 60 <include layout="@layout/dialpad" /> 61 62 <View 63 android:layout_width="match_parent" 64 android:layout_height="@dimen/dialpad_vertical_margin" 65 android:background="#66000000"/> 66 67 <!-- left and right paddings will be modified by the code. See DialpadFragment. --> 68 <FrameLayout 69 android:id="@+id/dialButtonContainer" 70 android:layout_width="match_parent" 71 android:layout_height="0px" 72 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" 73 android:layout_gravity="center_horizontal" 74 android:background="@drawable/dialpad_background"> 75 76 <ImageButton 77 android:id="@+id/dialButton" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:layout_gravity="center" 81 android:state_enabled="false" 82 android:background="@drawable/btn_call" 83 android:contentDescription="@string/description_dial_button" 84 android:src="@drawable/ic_dial_action_call" /> 85 86 </FrameLayout> 87 88 <!-- "Dialpad chooser" UI, shown only when the user brings up the 89 Dialer while a call is already in progress. 90 When this UI is visible, the other Dialer elements 91 (the textfield/button and the dialpad) are hidden. --> 92 <ListView android:id="@+id/dialpadChooser" 93 android:layout_width="match_parent" 94 android:layout_height="1dip" 95 android:layout_weight="1" 96 /> 97 98 </LinearLayout> 99