blob: 21638f0c04d9b4ba378ab0bb58bc07b58e3ac773 [file] [log] [blame]
Ihab Awad526c0b82014-02-27 12:55:36 -08001<?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
17<!-- Text field and possibly soft menu button above the keypad where
18 the digits are displayed. -->
19
20<LinearLayout
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 android:id="@+id/digits_container"
23 android:layout_width="match_parent"
24 android:layout_height="@dimen/dialpad_digits_height"
25 android:orientation="horizontal">
26
27 <view class="com.android.dialer.dialpad.DigitsEditText"
28 android:id="@+id/digits"
29 android:layout_width="0dp"
30 android:layout_height="match_parent"
31 android:paddingLeft="@dimen/dialpad_digits_padding"
32 android:scrollHorizontally="true"
33 android:singleLine="true"
34 android:layout_weight="1"
35 android:gravity="center"
36 android:background="@android:color/transparent"
37 android:maxLines="1"
38 android:textSize="@dimen/dialpad_digits_text_size"
39 android:freezesText="true"
40 android:focusableInTouchMode="true"
41 android:editable="true"
42 android:cursorVisible="false"
43 android:textColor="@color/dialpad_digits_text_color"
44 android:textCursorDrawable="@null"
45 android:fontFamily="sans-serif-light"
46 android:textStyle="normal" />
47
48 <ImageButton
49 android:id="@+id/deleteButton"
50 android:paddingLeft="@dimen/dialpad_digits_padding"
51 android:paddingRight="@dimen/dialpad_digits_padding"
52 android:layout_width="wrap_content"
53 android:layout_height="match_parent"
54 android:state_enabled="false"
55 android:background="@drawable/dialpad_key_colors"
56 android:contentDescription="@string/description_delete_button"
57 android:src="@drawable/ic_dial_action_delete" />
58</LinearLayout>