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 22 <LinearLayout 23 android:layout_width="0dp" 24 android:layout_height="match_parent" 25 android:layout_weight="3" 26 android:orientation="vertical" > 27 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:background="@drawable/dialpad_background" 35 android:gravity="center"> 36 37 <com.android.contacts.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 59 60 </LinearLayout> 61 <!-- "Dialpad chooser" UI, shown only when the user brings up the 62 Dialer while a call is already in progress. 63 When this UI is visible, the other Dialer elements 64 (the textfield and button) are hidden. --> 65 <ListView android:id="@+id/dialpadChooser" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:footerDividersEnabled="true" /> 69 70 <!-- Keypad section --> 71 <include layout="@layout/dialpad" /> 72 </LinearLayout> 73 <View 74 android:layout_width="@dimen/dialpad_center_margin" 75 android:layout_height="match_parent" 76 android:background="#66000000"/> 77 <RelativeLayout 78 android:id="@+id/dialButtonContainer" 79 android:layout_width="0dp" 80 android:layout_height="match_parent" 81 android:layout_weight="2" 82 android:background="@drawable/dialpad_background"> 83 <View 84 android:layout_width="match_parent" 85 android:layout_height="@dimen/dialpad_button_margin" 86 android:layout_above="@id/dialButton" 87 android:background="#33000000" /> 88 <ImageButton android:id="@+id/dialButton" 89 android:layout_width="match_parent" 90 android:layout_height="@dimen/call_button_height" 91 android:layout_alignParentBottom="true" 92 android:state_enabled="false" 93 android:background="@drawable/btn_call" 94 android:contentDescription="@string/description_dial_button" 95 android:src="@drawable/ic_dial_action_call" /> 96 </RelativeLayout> 97 </LinearLayout> 98