1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2006 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:layout_marginStart="@dimen/dialpad_horizontal_margin" 23 android:layout_marginEnd="@dimen/dialpad_horizontal_margin"> 24 25 <!-- Text field above the keypad where the digits are displayed --> 26 <LinearLayout 27 android:id="@+id/digits_container" 28 android:layout_width="match_parent" 29 android:layout_height="@dimen/emergency_dialer_digits_height" 30 android:layout_marginTop="@dimen/dialpad_vertical_margin" 31 android:layout_marginBottom="69dip" 32 android:gravity="center" 33 android:background="@drawable/dialpad_background" > 34 35 <EditText 36 android:id="@+id/digits" 37 android:layout_width="0dip" 38 android:layout_weight="1" 39 android:layout_height="match_parent" 40 android:gravity="center" 41 android:scrollHorizontally="true" 42 android:textAppearance="@style/DialtactsDigitsTextAppearance" 43 android:nextFocusRight="@+id/deleteButton" 44 android:background="@android:color/transparent" 45 android:hint="@string/dialerKeyboardHintText" /> 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 <FrameLayout 60 android:id="@+id/dialButtonContainer" 61 android:layout_width="match_parent" 62 android:layout_height="0dip" 63 android:layout_weight="1" 64 android:layout_gravity="center_horizontal" 65 android:background="@drawable/dialpad_background"> 66 67 <ImageButton 68 android:id="@+id/dialButton" 69 android:layout_width="match_parent" 70 android:layout_height="match_parent" 71 android:layout_gravity="center" 72 android:state_enabled="false" 73 android:background="@drawable/btn_call" 74 android:contentDescription="@string/description_dial_button" 75 android:src="@drawable/ic_dial_action_call" /> 76 77 </FrameLayout> 78 79 </LinearLayout> 80