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 > 23 24 <!-- Text field above the keypad where the digits are displayed. 25 It's type is set to PHONE (to put the keyboard in the right 26 config) in the java code. 27 --> 28 <!-- TODO: Use a textAppearance to control the display of the number --> 29 <EditText android:id="@+id/digits" 30 android:layout_width="match_parent" 31 android:layout_height="@dimen/dialpad_digits_height" 32 android:layout_marginBottom="@dimen/dialpad_digits_margin_bottom" 33 android:layout_marginTop="1dip" 34 android:gravity="center" 35 android:maxLines="1" 36 android:scrollHorizontally="true" 37 android:textSize="@dimen/dialpad_digits_text_size" 38 android:freezesText="true" 39 android:background="@drawable/btn_dial_textfield" 40 android:textColor="@color/dialer_button_text" 41 android:hint="@string/dialerKeyboardHintText" 42 /> 43 44 <!-- Horizontal row of buttons (Voicemail + DialButton + Delete.) --> 45 <include layout="@layout/dialpad_additional_buttons" /> 46 47 <!-- "Dialpad chooser" UI, shown only when the user brings up the 48 Dialer while a call is already in progress. 49 When this UI is visible, the other Dialer elements 50 (the textfield and button) are hidden. --> 51 <ListView android:id="@+id/dialpadChooser" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:footerDividersEnabled="true" 55 /> 56 57 </LinearLayout> 58