1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 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.phone.common.dialpad.DialpadView" 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/dialpad_view" 19 android:layout_height="match_parent" 20 android:layout_width="match_parent" 21 android:layout_gravity="bottom" 22 android:orientation="vertical" 23 android:layoutDirection="ltr" 24 android:background="?attr/dialpad_background" 25 android:clickable="true"> 26 27 <!-- Text field where call rate is displayed for ILD calls. --> 28 <LinearLayout 29 android:id="@+id/rate_container" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:orientation="vertical" 33 android:visibility="gone"> 34 35 <LinearLayout 36 android:id="@+id/ild_container" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:orientation="horizontal" 40 android:layout_gravity="center_horizontal" 41 android:layout_marginTop="@dimen/ild_margin_height" 42 android:layout_marginBottom="@dimen/ild_margin_height"> 43 44 <TextView android:id="@+id/ild_country" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" /> 47 48 <TextView android:id="@+id/ild_rate" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_marginStart="4dp" 52 android:textStyle="bold" /> 53 54 </LinearLayout> 55 56 <View 57 android:layout_width="match_parent" 58 android:layout_height="1dp" 59 android:background="#e3e3e3" /> 60 61 </LinearLayout> 62 63 <!-- Text field and possibly soft menu button above the keypad where 64 the digits are displayed. --> 65 <LinearLayout 66 android:id="@+id/digits_container" 67 android:layout_width="match_parent" 68 android:layout_height="@dimen/dialpad_digits_adjustable_height" 69 android:orientation="horizontal"> 70 71 <ImageButton android:id="@+id/dialpad_back" 72 android:background="@drawable/btn_dialpad_key" 73 android:src="@drawable/ic_arrow_back_black_24dp" 74 android:tint="?attr/dialpad_icon_tint" 75 android:layout_width="wrap_content" 76 android:layout_height="match_parent" 77 android:layout_margin="@dimen/dialpad_overflow_margin" 78 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" 79 android:paddingRight="@dimen/dialpad_digits_menu_right_padding" 80 android:contentDescription="@string/description_dialpad_back" 81 android:gravity="center" 82 android:visibility="gone" /> 83 84 <ImageButton android:id="@+id/dialpad_overflow" 85 android:background="@drawable/btn_dialpad_key" 86 android:src="@drawable/ic_overflow_menu" 87 android:tint="?attr/dialpad_icon_tint" 88 android:layout_width="wrap_content" 89 android:layout_height="match_parent" 90 android:layout_margin="@dimen/dialpad_overflow_margin" 91 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" 92 android:paddingRight="@dimen/dialpad_digits_menu_right_padding" 93 android:contentDescription="@string/description_dialpad_overflow" 94 android:gravity="center" 95 android:visibility="gone" /> 96 97 <view class="com.android.phone.common.dialpad.DigitsEditText" 98 xmlns:ex="http://schemas.android.com/apk/res-auto" 99 android:id="@+id/digits" 100 android:layout_width="0dp" 101 android:layout_height="match_parent" 102 android:scrollHorizontally="true" 103 android:singleLine="true" 104 android:layout_weight="1" 105 android:gravity="center" 106 android:background="@android:color/transparent" 107 android:maxLines="1" 108 android:textSize="@dimen/dialpad_digits_adjustable_text_size" 109 android:freezesText="true" 110 android:focusableInTouchMode="true" 111 android:cursorVisible="false" 112 android:textColor="?attr/dialpad_text_color" 113 android:textCursorDrawable="@null" 114 android:fontFamily="sans-serif" 115 android:textStyle="normal" 116 ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" /> 117 118 <ImageButton 119 android:id="@+id/deleteButton" 120 android:background="@drawable/btn_dialpad_key" 121 android:tint="?attr/dialpad_icon_tint" 122 android:paddingLeft="@dimen/dialpad_digits_padding" 123 android:paddingRight="@dimen/dialpad_digits_padding" 124 android:layout_width="wrap_content" 125 android:layout_height="match_parent" 126 android:state_enabled="false" 127 android:contentDescription="@string/description_delete_button" 128 android:src="@drawable/ic_dialpad_delete" /> 129 </LinearLayout> 130 131 <View 132 android:layout_width="match_parent" 133 android:layout_height="1dp" 134 android:background="#e3e3e3" /> 135 136 <Space 137 android:layout_width="match_parent" 138 android:layout_height="@dimen/dialpad_space_above_keys" /> 139 140 <include layout="@layout/dialpad" /> 141 142 <Space 143 android:layout_width="match_parent" 144 android:layout_height="@dimen/dialpad_space_below_keys" /> 145 146 </view> 147