1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 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="@color/background_dialpad" 25 android:clickable="true" > 26 27 <!-- Text field and possibly soft menu button above the keypad where 28 the digits are displayed. --> 29 <LinearLayout 30 android:id="@+id/digits_container" 31 android:layout_width="match_parent" 32 android:layout_height="@dimen/dialpad_digits_height" 33 android:orientation="horizontal"> 34 35 <ImageButton android:id="@+id/dialpad_overflow" 36 android:background="@drawable/btn_dialpad_key" 37 android:src="@drawable/ic_overflow_menu" 38 android:tint="@color/dialpad_icon_tint" 39 android:layout_width="wrap_content" 40 android:layout_height="match_parent" 41 android:layout_margin="@dimen/dialpad_overflow_margin" 42 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding" 43 android:paddingRight="@dimen/dialpad_digits_menu_right_padding" 44 android:contentDescription="@string/description_dialpad_overflow" 45 android:gravity="center" 46 android:visibility="invisible" /> 47 48 <view class="com.android.phone.common.dialpad.DigitsEditText" 49 xmlns:ex="http://schemas.android.com/apk/res-auto" 50 android:id="@+id/digits" 51 android:layout_width="0dp" 52 android:layout_height="match_parent" 53 android:scrollHorizontally="true" 54 android:singleLine="true" 55 android:layout_weight="1" 56 android:gravity="center" 57 android:background="@android:color/transparent" 58 android:maxLines="1" 59 android:textSize="@dimen/dialpad_digits_text_size" 60 android:freezesText="true" 61 android:focusableInTouchMode="true" 62 android:cursorVisible="false" 63 android:textColor="@color/dialpad_digits_text_color" 64 android:textCursorDrawable="@null" 65 android:fontFamily="sans-serif-light" 66 android:textStyle="normal" 67 ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" /> 68 69 <ImageButton 70 android:id="@+id/deleteButton" 71 android:background="@drawable/btn_dialpad_key" 72 android:tint="@color/dialpad_icon_tint" 73 android:paddingLeft="@dimen/dialpad_digits_padding" 74 android:paddingRight="@dimen/dialpad_digits_padding" 75 android:layout_width="wrap_content" 76 android:layout_height="match_parent" 77 android:state_enabled="false" 78 android:contentDescription="@string/description_delete_button" 79 android:src="@drawable/ic_dialpad_delete" /> 80 </LinearLayout> 81 82 <View 83 android:layout_width="match_parent" 84 android:layout_height="1dp" 85 android:background="#e3e3e3" /> 86 87 <Space 88 android:layout_width="match_parent" 89 android:layout_height="@dimen/dialpad_space_above_keys" /> 90 91 <include layout="@layout/dialpad" /> 92 93 <Space 94 android:layout_width="match_parent" 95 android:layout_height="8dp" /> 96 97 </view> 98