1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 <!-- Onscreen in-call DTMF dialpad. This element contains the grid of 18 DTMF buttons (dialpad.xml) along with a TextView showing 19 the digits you've typed. 20 21 When the user presses the "Dialpad" button, this UI appears in the 22 upper part of the in-call screen, covering up the "call card" area. 23 The regular in-call controls (i.e. the InCallTouchUi widget) are 24 still visible at the lower part of the screen. 25 26 This layout is inflated in place of dtmf_twelve_key_dialer_stub 27 in incall_touch_ui.xml. --> 28 <com.android.phone.DTMFTwelveKeyDialerView 29 xmlns:android="http://schemas.android.com/apk/res/android" 30 android:id="@+id/dtmf_twelve_key_dialer_view" 31 android:layout_width="match_parent" 32 android:layout_height="match_parent" 33 android:orientation="vertical" 34 android:layout_marginTop="1dip" 35 android:visibility="gone" 36 > 37 38 <!-- Display of the digits you've typed so far. 39 This widget appears completely non-interactive to the user: you 40 can't edit or "hit backspace" since these are DTMF tones you've 41 already sent over the network. But it's still an EditText rather 42 than a TextView because it needs to receive key events from a 43 hard keyboard, if present (see mDialerKeyListener). --> 44 <EditText 45 android:id="@+id/dtmfDialerField" 46 android:layout_width="match_parent" 47 android:layout_height="32dp" 48 android:layout_marginTop="10dp" 49 android:layout_marginBottom="5dp" 50 android:layout_marginLeft="32dp" 51 android:layout_marginRight="32dp" 52 android:paddingRight="16dp" 53 android:paddingLeft="16dp" 54 android:singleLine="true" 55 android:scrollHorizontally="true" 56 android:textSize="24sp" 57 android:gravity="center" 58 android:freezesText="true" 59 android:background="@null" 60 android:textColor="@color/dtmf_dialer_display_text" 61 android:focusableInTouchMode="false" 62 android:clickable="false"/> 63 64 <!-- The dialpad itself --> 65 <include layout="@layout/dialpad" /> 66 67 </com.android.phone.DTMFTwelveKeyDialerView> 68