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 <view class="com.android.dialer.dialpad.DialpadFragment$DialpadSlidingLinearLayout" 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="vertical" > 21 <!-- spacer view --> 22 <Space 23 android:layout_width="match_parent" 24 android:layout_height="0dp" 25 android:layout_weight="1" /> 26 <view class="com.android.dialer.dialpad.DialpadFragment$HoverIgnoringLinearLayout" 27 android:id="@+id/top" 28 android:layout_width="match_parent" 29 android:layout_height="0dp" 30 android:layout_weight="2" 31 android:orientation="vertical" 32 android:paddingStart="@dimen/dialpad_horizontal_margin" 33 android:paddingEnd="@dimen/dialpad_horizontal_margin" 34 android:layoutDirection="ltr" 35 android:background="@color/background_dialpad" > 36 37 38 <!-- Text field and possibly soft menu button above the keypad where 39 the digits are displayed. --> 40 <LinearLayout 41 android:id="@+id/digits_container" 42 android:layout_width="match_parent" 43 android:layout_height="0px" 44 android:layout_weight="@integer/dialpad_layout_weight_digits" 45 android:layout_marginTop="@dimen/dialpad_vertical_margin" 46 android:gravity="center" > 47 48 <com.android.dialer.dialpad.DigitsEditText 49 android:id="@+id/digits" 50 android:layout_width="0dip" 51 android:layout_weight="1" 52 android:layout_height="match_parent" 53 android:paddingLeft="10dp" 54 android:gravity="center" 55 android:scrollHorizontally="true" 56 android:singleLine="true" 57 android:textAppearance="@style/DialtactsDigitsTextAppearance" 58 android:textColor="@color/dialpad_text_color" 59 android:textCursorDrawable="@null" 60 android:fontFamily="sans-serif-light" 61 android:nextFocusRight="@+id/overflow_menu" 62 android:background="@android:color/transparent" /> 63 64 <ImageButton 65 android:id="@+id/deleteButton" 66 android:layout_width="56dip" 67 android:layout_height="match_parent" 68 android:layout_gravity="center_vertical" 69 android:gravity="center" 70 android:state_enabled="false" 71 android:background="?android:attr/selectableItemBackground" 72 android:contentDescription="@string/description_delete_button" 73 android:src="@drawable/ic_dial_action_delete" /> 74 </LinearLayout> 75 76 <!-- Keypad section --> 77 <include layout="@layout/dialpad" /> 78 79 <View style="@style/DialpadHorizontalSeparator"/> 80 81 <LinearLayout 82 android:id="@+id/dialButtonContainer" 83 android:layout_width="match_parent" 84 android:layout_height="@dimen/fake_action_bar_height" 85 android:layout_gravity="center_horizontal" 86 android:background="@color/dialpad_primary_text_color" 87 android:layoutDirection="locale"> 88 <ImageButton 89 android:id="@+id/call_history_on_dialpad_button" 90 android:layout_height="match_parent" 91 android:layout_width="@dimen/fake_menu_button_min_width" 92 android:layout_gravity="bottom|start" 93 android:background="@drawable/btn_call" 94 android:contentDescription="@string/action_menu_call_history_description" 95 android:src="@drawable/ic_menu_history_lt"/> 96 <ImageButton 97 android:id="@+id/dialButton" 98 android:layout_width="0dp" 99 android:layout_weight="1" 100 android:layout_height="match_parent" 101 android:layout_gravity="center" 102 android:state_enabled="false" 103 android:background="@drawable/btn_call" 104 android:contentDescription="@string/description_dial_button" 105 android:src="@drawable/ic_dial_action_call" /> 106 <ImageButton 107 android:id="@+id/overflow_menu_on_dialpad" 108 android:layout_height="match_parent" 109 android:layout_width="@dimen/fake_menu_button_min_width" 110 android:layout_gravity="bottom|end" 111 android:background="@drawable/btn_call" 112 android:src="@drawable/ic_menu_overflow_lt" 113 android:contentDescription="@string/action_menu_overflow_description" /> 114 </LinearLayout> 115 116 <!-- "Dialpad chooser" UI, shown only when the user brings up the 117 Dialer while a call is already in progress. 118 When this UI is visible, the other Dialer elements 119 (the textfield/button and the dialpad) are hidden. --> 120 <ListView android:id="@+id/dialpadChooser" 121 android:layout_width="match_parent" 122 android:layout_height="1dip" 123 android:layout_weight="1" 124 /> 125 126 </view> 127 </view> 128