1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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 <!-- Sliding drawer widget containing the in-call DTMF dialpad. 18 19 On devices that do *not* use an onscreen InCallTouchUi 20 widget, the dialpad is contained within a SlidingDrawer 21 (which provides a "handle" that the user must drag open 22 to access the dialpad.) 23 24 See non_drawer_dialpad.xml for the corresponding layout file 25 for devices that *do* use an InCallTouchUi widget. 26 --> 27 <SlidingDrawer 28 xmlns:android="http://schemas.android.com/apk/res/android" 29 android:id="@+id/dialer_container" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:topOffset="5dp" 33 android:bottomOffset="7dp" 34 android:handle="@+id/dialer_tab" 35 android:content="@+id/dtmf_dialer" 36 android:allowSingleTap="false" 37 android:visibility="gone" 38 > 39 40 <!-- Drawer handle --> 41 <LinearLayout 42 android:id="@id/dialer_tab" 43 android:orientation="horizontal" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:gravity="bottom" 47 android:focusable="true" 48 > 49 <ImageView 50 android:layout_width="1dip" 51 android:layout_height="wrap_content" 52 android:layout_weight="1" 53 android:scaleType="fitXY" 54 android:duplicateParentState="true" 55 android:src="@drawable/tray_handle_strip" 56 /> 57 <Button 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:text="@string/dtmfDialpadHandleLabel" 61 android:singleLine="true" 62 android:textAppearance="?android:attr/textAppearanceSmall" 63 android:textStyle="bold" 64 android:shadowDy="1" 65 android:shadowRadius="0.9" 66 android:shadowColor="#ffffffff" 67 android:duplicateParentState="true" 68 android:background="@drawable/tray_handle_tab"/> 69 <ImageView 70 android:layout_width="1dip" 71 android:layout_height="wrap_content" 72 android:layout_weight="1" 73 android:scaleType="fitXY" 74 android:src="@drawable/tray_handle_strip" 75 android:duplicateParentState="true" 76 /> 77 </LinearLayout> 78 79 <!-- drawer content dialer view --> 80 <com.android.phone.DTMFTwelveKeyDialerView 81 xmlns:android="http://schemas.android.com/apk/res/android" 82 android:id="@+id/dtmf_dialer" 83 android:layout_width="match_parent" 84 android:layout_height="match_parent" 85 android:orientation="vertical" 86 android:layout_marginTop="1dip" 87 android:background="@color/dtmf_dialer_background"> 88 89 <!-- Number Display Field, padded for correct text alignment --> 90 <EditText android:id="@+id/dtmfDialerField" 91 android:layout_width="match_parent" 92 android:layout_height="66dp" 93 android:layout_marginTop="14dp" 94 android:layout_marginBottom="6dp" 95 android:layout_marginLeft="3dp" 96 android:layout_marginRight="3dp" 97 android:paddingRight="16dp" 98 android:paddingLeft="16dp" 99 android:maxLines="1" 100 android:scrollHorizontally="true" 101 android:textSize="28sp" 102 android:freezesText="true" 103 android:background="@drawable/btn_dial_textfield_normal_full" 104 android:textColor="@color/dtmf_dialer_display_text" 105 android:focusableInTouchMode="false" 106 android:clickable="false"/> 107 108 <!-- Keypad section --> 109 <include layout="@layout/dialpad" /> 110 111 <!-- Dummy element to pad below the dialpad --> 112 <View android:layout_height="1dp" 113 android:layout_width="match_parent" 114 android:layout_weight="1"/> 115 116 </com.android.phone.DTMFTwelveKeyDialerView> 117 118 </SlidingDrawer> 119