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="?attr/dialpad_separator_color" /> 60 61 </LinearLayout> 62 63 <View 64 android:id="@+id/dialpad_digits_top_separator" 65 android:layout_width="match_parent" 66 android:layout_height="1dp" 67 android:background="?attr/dialpad_separator_color" /> 68 <!-- Text field and possibly soft menu button above the keypad where 69 the digits are displayed. --> 70 <LinearLayout 71 android:id="@+id/digits_container" 72 android:layout_width="match_parent" 73 android:layout_height="@dimen/dialpad_digits_adjustable_height" 74 android:orientation="horizontal"> 75 76 <ImageButton android:id="@+id/dialpad_back" 77 android:background="@drawable/btn_dialpad_key" 78 android:src="@drawable/ic_arrow_back_black_24dp" 79 android:tint="?attr/dialpad_icon_tint" 80 android:layout_width="wrap_content" 81 android:layout_height="match_parent" 82 android:layout_margin="@dimen/dialpad_overflow_margin" 83 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" 84 android:paddingRight="@dimen/dialpad_digits_menu_right_padding" 85 android:contentDescription="@string/description_dialpad_back" 86 android:gravity="center" 87 android:visibility="gone" /> 88 89 <ImageButton android:id="@+id/dialpad_overflow" 90 android:background="@drawable/btn_dialpad_key" 91 android:src="@drawable/ic_overflow_menu" 92 android:tint="?attr/dialpad_icon_tint" 93 android:layout_width="wrap_content" 94 android:layout_height="match_parent" 95 android:layout_margin="@dimen/dialpad_overflow_margin" 96 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" 97 android:paddingRight="@dimen/dialpad_digits_menu_right_padding" 98 android:contentDescription="@string/description_dialpad_overflow" 99 android:gravity="center" 100 android:visibility="gone" /> 101 102 <view class="com.android.phone.common.dialpad.DigitsEditText" 103 xmlns:ex="http://schemas.android.com/apk/res-auto" 104 android:id="@+id/digits" 105 android:layout_width="0dp" 106 android:layout_height="match_parent" 107 android:scrollHorizontally="true" 108 android:singleLine="true" 109 android:layout_weight="1" 110 android:gravity="center" 111 android:background="@android:color/transparent" 112 android:maxLines="1" 113 android:textSize="@dimen/dialpad_digits_adjustable_text_size" 114 android:freezesText="true" 115 android:focusableInTouchMode="true" 116 android:cursorVisible="false" 117 android:textColor="?attr/dialpad_text_color" 118 android:textCursorDrawable="@null" 119 android:fontFamily="sans-serif" 120 android:textStyle="normal" 121 ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" /> 122 123 <ImageButton 124 android:id="@+id/deleteButton" 125 android:background="@drawable/btn_dialpad_key" 126 android:tint="?attr/dialpad_icon_tint" 127 android:paddingStart="@dimen/dialpad_digits_padding" 128 android:paddingEnd="?attr/dialpad_delete_padding" 129 android:layout_width="wrap_content" 130 android:layout_height="match_parent" 131 android:state_enabled="false" 132 android:contentDescription="@string/description_delete_button" 133 android:src="@drawable/ic_dialpad_delete" /> 134 </LinearLayout> 135 136 <View 137 android:layout_width="match_parent" 138 android:layout_height="1dp" 139 android:background="?attr/dialpad_separator_color" /> 140 141 <Space 142 android:layout_width="match_parent" 143 android:layout_height="@dimen/dialpad_space_above_keys" /> 144 145 <include layout="@layout/dialpad" /> 146 147 <Space 148 android:layout_width="match_parent" 149 android:layout_height="@dimen/dialpad_space_below_keys" /> 150 151</view> 152