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<com.android.dialer.dialpadview.DialpadView xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/dialpad_view"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:layout_gravity="bottom"
21    android:background="?attr/dialpad_background"
22    android:clickable="true"
23    android:elevation="?attr/dialpad_elevation"
24    android:layoutDirection="ltr"
25    android:orientation="vertical">
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:layout_marginTop="@dimen/ild_margin_height"
40        android:layout_marginBottom="@dimen/ild_margin_height"
41        android:layout_gravity="center_horizontal"
42        android:orientation="horizontal">
43
44      <TextView
45          android:id="@+id/ild_country"
46          android:layout_width="wrap_content"
47          android:layout_height="wrap_content"/>
48
49      <TextView
50          android:id="@+id/ild_rate"
51          android:textStyle="bold"
52          android:layout_width="wrap_content"
53          android:layout_height="wrap_content"
54          android:layout_marginStart="4dp"/>
55
56    </LinearLayout>
57
58    <View
59        android:layout_width="match_parent"
60        android:layout_height="1dp"
61        android:background="#e3e3e3"/>
62
63  </LinearLayout>
64
65  <!-- Text field and possibly soft menu button above the keypad where
66   the digits are displayed. -->
67  <LinearLayout
68      android:id="@+id/digits_container"
69      android:layout_width="match_parent"
70      android:layout_height="?attr/dialpad_digits_adjustable_height"
71      android:orientation="horizontal">
72
73    <ImageButton
74        android:id="@+id/dialpad_back"
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:background="@drawable/btn_dialpad_key"
81        android:contentDescription="@string/description_dialpad_back"
82        android:gravity="center"
83        android:src="@drawable/quantum_ic_close_white_24"
84        android:tint="?colorIcon"
85        android:tintMode="src_in"
86        android:visibility="gone"/>
87
88    <ImageButton
89        android:id="@+id/dialpad_overflow"
90        android:layout_width="wrap_content"
91        android:layout_height="match_parent"
92        android:layout_margin="@dimen/dialpad_overflow_margin"
93        android:paddingLeft="@dimen/dialpad_digits_menu_left_padding"
94        android:paddingRight="@dimen/dialpad_digits_menu_right_padding"
95        android:background="@drawable/btn_dialpad_key"
96        android:contentDescription="@string/description_dialpad_overflow"
97        android:gravity="center"
98        android:src="@drawable/quantum_ic_more_vert_white_24"
99        android:tint="?colorIcon"
100        android:tintMode="src_in"
101        android:visibility="gone"/>
102      <FrameLayout android:layout_width="0dp"
103          android:layout_height="match_parent"
104          android:layout_weight="1">
105        <TextView android:layout_width="match_parent"
106            android:layout_height="match_parent"
107            android:id="@+id/digits_hint"
108            android:focusable="false"
109            android:gravity="center"
110            android:textSize="14sp"
111            android:textColor="?colorIcon"
112            android:visibility="gone"
113          />
114        <com.android.dialer.dialpadview.DigitsEditText
115            xmlns:ex="http://schemas.android.com/apk/res-auto"
116            android:id="@+id/digits"
117            android:textStyle="normal"
118            android:layout_width="match_parent"
119            android:layout_height="match_parent"
120            android:background="@android:color/transparent"
121            android:cursorVisible="false"
122            android:focusableInTouchMode="true"
123            android:fontFamily="sans-serif"
124            android:freezesText="true"
125            android:gravity="center"
126            android:importantForAutofill="no"
127            android:maxLines="1"
128            android:scrollHorizontally="true"
129            android:singleLine="true"
130            android:textColor="?attr/dialpad_text_color"
131            android:textCursorDrawable="@null"
132            android:textSize="?attr/dialpad_digits_adjustable_text_size"
133            ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size"/>
134      </FrameLayout>
135    <ImageButton
136        android:id="@+id/deleteButton"
137        android:layout_width="wrap_content"
138        android:layout_height="match_parent"
139        android:paddingLeft="@dimen/dialpad_digits_padding"
140        android:paddingRight="@dimen/dialpad_digits_padding"
141        android:background="@drawable/btn_dialpad_key"
142        android:contentDescription="@string/description_delete_button"
143        android:src="@drawable/quantum_ic_backspace_white_24"
144        android:state_enabled="false"
145        android:tint="?colorIcon"
146        android:tintMode="src_in"/>
147  </LinearLayout>
148
149  <View
150      android:layout_width="match_parent"
151      android:layout_height="1dp"
152      android:background="#e3e3e3"/>
153
154  <Space
155      android:layout_width="match_parent"
156      android:layout_height="@dimen/dialpad_space_above_keys"/>
157
158  <include layout="@layout/dialpad"/>
159
160  <Space
161      android:layout_width="match_parent"
162      android:layout_height="@dimen/dialpad_space_below_keys"/>
163
164</com.android.dialer.dialpadview.DialpadView>
165