blob: 12b1a686eac2f9daff66886f1a34804282b664e7 [file] [log] [blame]
Sai Cheemalapati13b89482014-06-19 12:33:34 -07001<?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
Evan Charlton972e8732014-11-08 08:36:56 -080027 <!-- Text field where call rate is displayed for ILD calls. -->
Evan Charlton0830cf62014-11-18 13:20:04 -080028 <LinearLayout
Evan Charlton972e8732014-11-08 08:36:56 -080029 android:id="@+id/rate_container"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
Evan Charlton0830cf62014-11-18 13:20:04 -080032 android:orientation="vertical"
Evan Charlton972e8732014-11-08 08:36:56 -080033 android:visibility="gone">
34
Evan Charlton0830cf62014-11-18 13:20:04 -080035 <LinearLayout
36 android:id="@+id/ild_container"
Evan Charlton972e8732014-11-08 08:36:56 -080037 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
Evan Charlton0830cf62014-11-18 13:20:04 -080039 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">
Evan Charlton972e8732014-11-08 08:36:56 -080043
Evan Charlton0830cf62014-11-18 13:20:04 -080044 <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>
Evan Charlton972e8732014-11-08 08:36:56 -080055
56 <View
57 android:layout_width="match_parent"
58 android:layout_height="1dp"
Evan Charlton0830cf62014-11-18 13:20:04 -080059 android:background="#e3e3e3" />
Evan Charlton972e8732014-11-08 08:36:56 -080060
Evan Charlton0830cf62014-11-18 13:20:04 -080061 </LinearLayout>
Evan Charlton972e8732014-11-08 08:36:56 -080062
Sai Cheemalapati13b89482014-06-19 12:33:34 -070063 <!-- 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_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"
Yorke Lee86cd19e2014-07-15 16:03:25 -070077 android:layout_margin="@dimen/dialpad_overflow_margin"
Nancy Chen9764a822014-07-29 14:34:52 -070078 android:paddingLeft="@dimen/dialpad_digits_menu_left_padding"
Sai Cheemalapati13b89482014-06-19 12:33:34 -070079 android:paddingRight="@dimen/dialpad_digits_menu_right_padding"
80 android:contentDescription="@string/description_dialpad_overflow"
81 android:gravity="center"
Nancy Chen15b1df12014-07-30 11:26:11 -070082 android:visibility="invisible" />
Sai Cheemalapati13b89482014-06-19 12:33:34 -070083
84 <view class="com.android.phone.common.dialpad.DigitsEditText"
Sai Cheemalapati9a17f0e2014-06-23 11:30:45 -070085 xmlns:ex="http://schemas.android.com/apk/res-auto"
Sai Cheemalapati13b89482014-06-19 12:33:34 -070086 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_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-light"
Sai Cheemalapati9a17f0e2014-06-23 11:30:45 -0700102 android:textStyle="normal"
103 ex:resizing_text_min_size="@dimen/dialpad_digits_text_min_size" />
Sai Cheemalapati13b89482014-06-19 12:33:34 -0700104
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"
Brian Attwell1b8e8d72014-09-11 16:34:47 -0700125 android:layout_height="@dimen/dialpad_space_above_keys" />
Sai Cheemalapati13b89482014-06-19 12:33:34 -0700126
127 <include layout="@layout/dialpad" />
128
129 <Space
130 android:layout_width="match_parent"
131 android:layout_height="8dp" />
132
133</view>