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 <!-- Layout for the emergency dialer; see EmergencyDialer.java. --> 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/top" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 android:layout_marginStart="@dimen/dialpad_horizontal_margin" 24 android:layout_marginEnd="@dimen/dialpad_horizontal_margin"> 25 26 <!-- Text field above the keypad where 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 <EditText 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:scrollHorizontally="true" 43 android:textAppearance="@style/DialtactsDigitsTextAppearance" 44 android:focusableInTouchMode="false" 45 android:nextFocusRight="@+id/deleteButton" 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 <!-- Keypad section --> 61 <include layout="@layout/dialpad" /> 62 63 <View 64 android:layout_width="match_parent" 65 android:layout_height="@dimen/dialpad_vertical_margin" 66 android:background="#66000000"/> 67 68 <!-- In usual dialpad we set some padding between this button and the 69 left/right edges. Here, we don't do that just for simplicitly. --> 70 <FrameLayout 71 android:id="@+id/dialButtonContainer" 72 android:layout_width="match_parent" 73 android:layout_height="0px" 74 android:layout_weight="@integer/dialpad_layout_weight_additional_buttons" 75 android:layout_gravity="center_horizontal" 76 android:background="@drawable/dialpad_background"> 77 78 <ImageButton 79 android:id="@+id/dialButton" 80 android:layout_width="match_parent" 81 android:layout_height="match_parent" 82 android:layout_gravity="center" 83 android:state_enabled="false" 84 android:background="@drawable/btn_call" 85 android:contentDescription="@string/description_dial_button" 86 android:src="@drawable/ic_dial_action_call" /> 87 88 </FrameLayout> 89 90 </LinearLayout> 91