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 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_overflow"
72            android:background="@drawable/btn_dialpad_key"
73            android:src="@drawable/ic_overflow_menu"
74            android:tint="@color/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_overflow"
81            android:gravity="center"
82            android:visibility="invisible" />
83
84        <view class="com.android.phone.common.dialpad.DigitsEditText"
85            xmlns:ex="http://schemas.android.com/apk/res-auto"
86            android:id="@+id/digits"
87            android:layout_width="0dp"
88            android:layout_height="match_parent"
89            android:scrollHorizontally="true"
90            android:singleLine="true"
91            android:layout_weight="1"
92            android:gravity="center"
93            android:background="@android:color/transparent"
94            android:maxLines="1"
95            android:textSize="@dimen/dialpad_digits_adjustable_text_size"
96            android:freezesText="true"
97            android:focusableInTouchMode="true"
98            android:cursorVisible="false"
99            android:textColor="@color/dialpad_digits_text_color"
100            android:textCursorDrawable="@null"
101            android:fontFamily="sans-serif"
102            android:textStyle="normal"
103            ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" />
104
105        <ImageButton
106            android:id="@+id/deleteButton"
107            android:background="@drawable/btn_dialpad_key"
108            android:tint="@color/dialpad_icon_tint"
109            android:paddingLeft="@dimen/dialpad_digits_padding"
110            android:paddingRight="@dimen/dialpad_digits_padding"
111            android:layout_width="wrap_content"
112            android:layout_height="match_parent"
113            android:state_enabled="false"
114            android:contentDescription="@string/description_delete_button"
115            android:src="@drawable/ic_dialpad_delete" />
116    </LinearLayout>
117
118    <View
119        android:layout_width="match_parent"
120        android:layout_height="1dp"
121        android:background="#e3e3e3" />
122
123    <Space
124        android:layout_width="match_parent"
125        android:layout_height="@dimen/dialpad_space_above_keys" />
126
127    <include layout="@layout/dialpad" />
128
129    <Space
130        android:layout_width="match_parent"
131        android:layout_height="8dp" />
132
133</view>
134