blob: e1742d8a1820ad6155dd7b4172b6b348c9515c7b [file] [log] [blame]
Santos Cordon7d4ddf62013-07-10 11:58:08 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<resources>
18 <!-- Dimensions for CallCard elements (the normal in-call UI) -->
19
20 <!-- Height of the "call banner" overlay on top of the upper part of
21 the call info area. -->
22 <dimen name="call_banner_height">80dp</dimen>
23
24 <!-- Margin between the bottom of the "call card" photo
25 and the top of the in-call button cluster. -->
26 <dimen name="in_call_touch_ui_upper_margin">2dp</dimen>
27
28 <!-- Padding at the left and right edges of the "call banner". -->
29 <dimen name="call_banner_side_padding">24dp</dimen>
30 <!-- Padding at the top and bottom edges of the "call banner". -->
31 <dimen name="call_banner_top_bottom_padding">16dp</dimen>
32
33 <!-- Padding at the top and bottom edges of the "provider information" -->
34 <dimen name="provider_info_top_bottom_padding">8dp</dimen>
35
36 <!-- Right padding for name and number fields in the call banner.
37 This padding is used to ensure that ultra-long names or
38 numbers won't overlap the elapsed time indication. -->
39 <dimen name="call_banner_name_number_right_padding">50sp</dimen>
40
41 <!-- Height of the main row of in-call buttons. -->
42 <dimen name="in_call_button_height">76dp</dimen>
43
44 <!-- Height of the in-call "End" button. Match with Contact's dimens/call_button_height -->
45 <dimen name="in_call_end_button_height">74dp</dimen>
46
47 <!-- Width of buttons in the extra button row. -->
48 <dimen name="extra_row_button_width">56dp</dimen>
49
50 <!-- Height of buttons in the extra button row. -->
51 <dimen name="extra_row_button_height">@dimen/in_call_button_height</dimen>
52
53 <!-- Padding at the left and right edges of the incall_touch_ui button
54 cluster. This padding is necessary because we can't allow the
55 buttons to be very close to the edges of the screen, due to the
56 risk of false touches (from your finger wrapping around while
57 holding the phone, *before* moving it up to your face and having
58 the prox sensor kick in.) -->
59 <dimen name="button_cluster_side_padding">20dp</dimen>
60
61
62 <!-- Dimensions for OTA Call Card -->
63 <dimen name="otaactivate_layout_marginTop">10dp</dimen>
64 <dimen name="otalistenprogress_layout_marginTop">5dp</dimen>
65 <dimen name="otasuccessfail_layout_marginTop">10dp</dimen>
66
67
68 <!-- Dimensions for Emergency Dialer and dialpad inside the in-call screen -->
69 <dimen name="dialpad_horizontal_margin">4dp</dimen>
70 <dimen name="dialpad_vertical_margin">2dp</dimen>
Lucas Dupin31f7ec72017-06-26 18:58:25 -070071 <dimen name="dialpad_digits_text_size">40sp</dimen>
Brian Attwell28fd9772014-09-11 17:08:33 -070072 <dimen name="dialpad_space_above_keys">29dp</dimen>
73 <dimen name="dialpad_bottom_key_height">113dp</dimen>
Lucas Dupinaea942a2017-07-26 16:26:29 -070074 <dimen name="dialpad_bottom_padding">0dp</dimen>
Santos Cordon7d4ddf62013-07-10 11:58:08 -070075
76 <!-- Just used in landscape mode -->
77 <dimen name="emergency_dialer_digits_height">0px</dimen>
78 <dimen name="dialpad_center_margin">3dp</dimen>
79 <dimen name="dialpad_button_margin">3dp</dimen>
80
81
82 <!-- Layout weight values for dialpad screen. These layouts will be used in one
83 LinearLayout (dialpad_fragment.xml), configuring dialpad screen's vertical
84 ratio. -->
85 <integer name="dialpad_layout_weight_digits">20</integer>
86 <integer name="dialpad_layout_weight_dialpad">65</integer>
87 <integer name="dialpad_layout_weight_additional_buttons">15</integer>
88
89 <!-- Dimension used to possibly down-scale high-res photo into what is suitable
90 for notification's large icon. -->
91 <dimen name="notification_icon_size">64dp</dimen>
92
93 <!-- Circle size for incoming call widget's each item. -->
94 <dimen name="incoming_call_widget_circle_size">94dp</dimen>
95 <!-- Margin used for incoming call widget's icon for each item.
96 This should be same as "(incoming_call_widget_circle_size - icon_size)/2".
97 Right now answer/decline/reject icons have 38dp width/height.
98 So, (94 - 38)/2 ==> 28dp -->
99 <dimen name="incoming_call_widget_asset_margin">28dp</dimen>
Nancy Chen3b126502014-07-28 16:29:58 -0700100 <!-- Action bar dimensions. Keep in sync with same value in Dialer. -->
Nancy Chen0336d812014-09-09 18:00:01 -0700101 <dimen name="action_bar_height">56dp</dimen>
102 <dimen name="action_bar_elevation">2dp</dimen>
Nancy Chen3b126502014-07-28 16:29:58 -0700103 <dimen name="actionbar_contentInsetStart">72dp</dimen>
Brian Attwell28fd9772014-09-11 17:08:33 -0700104
105 <!-- Width, height and bottom margin for the floating action button. These values are
106 intentionally larger than the values used inside Dialer, since the dialpad is larger
107 inside the Emergency Dialer than the regular Dialer. -->
108 <dimen name="floating_action_button_width">67dp</dimen>
109 <dimen name="floating_action_button_height">67dp</dimen>
Lucas Dupin31f7ec72017-06-26 18:58:25 -0700110 <dimen name="floating_action_button_margin_bottom">32dp</dimen>
Cassie6f2de162018-03-02 13:04:21 -0800111
112 <dimen name="signal_strength_icon_size">24dp</dimen>
Tyler Gunnc5428972018-03-28 14:15:34 -0700113
114 <!-- The size of the "emergency calling unavailable" message shown in the emergency dialer -->
115 <dimen name="emergency_call_warning_size">16sp</dimen>
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800116
117 <!-- Horizontal margin for the image on emergency dialer.-->
Wesley.CW Wang5e785392018-08-09 20:11:34 +0800118 <dimen name="emergency_dialer_image_margin_start">20dp</dimen>
119 <dimen name="emergency_dialer_image_margin_end">16dp</dimen>
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800120
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800121 <!-- Horizontal margin for button of emergency shortcut. -->
Chihhang Chuang9de05c12018-07-04 13:18:34 +0800122 <dimen name="emergency_shortcut_buttons_margin_horizontal">16dp</dimen>
123
Chihhang Chuang9de05c12018-07-04 13:18:34 +0800124 <!-- Horizontal padding for group of emergency number title-->
125 <dimen name="emergency_number_title_group_padding_horizontal">16dp</dimen>
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800126
Wesley.CW Wang5e785392018-08-09 20:11:34 +0800127 <!-- Margin for the emergency information button text. -->
128 <dimen name="emergency_info_text_margin_end">20dp</dimen>
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800129
130 <!-- The height and width for the image of emergency information. -->
Wesley.CW Wang5e785392018-08-09 20:11:34 +0800131 <dimen name="emergency_info_image_height">40dp</dimen>
132 <dimen name="emergency_info_image_width">40dp</dimen>
Chihhang Chuangf8d33002018-07-02 11:08:50 +0800133
134 <!-- The height and width for the function icon of emergency shortcuts. -->
135 <dimen name="emergency_shortcuts_function_icon_height">24dp</dimen>
136 <dimen name="emergency_shortcuts_function_icon_width">24dp</dimen>
137
Chihhang Chuang9de05c12018-07-04 13:18:34 +0800138 <!-- The height and width for the circle image of phone number type.-->
139 <dimen name="phone_number_type_circle_image_height">40dp</dimen>
140 <dimen name="phone_number_type_circle_image_width">40dp</dimen>
141
Wesley.CW Wang5e785392018-08-09 20:11:34 +0800142 <!-- Margin for the emergency shortcut button.-->
143 <dimen name="emergency_shortcuts_margin_end">60dp</dimen>
144
145 <!-- The line height and margin start for location text.-->
146 <dimen name="location_text_line_height">20sp</dimen>
147 <dimen name="location_text_margin_start">4dp</dimen>
148
149 <!-- The line height for emergency number title.-->
150 <dimen name="emergency_number_title_line_height">20sp</dimen>
151
152 <!-- The line height for phone number.-->
153 <dimen name="phone_number_line_height">40sp</dimen>
154
155 <!-- The line height for phone call hint.-->
156 <dimen name="phone_call_hint_line_height">24sp</dimen>
157
158 <!-- The line height for emergency info name.-->
159 <dimen name="emergency_info_name_line_height">28sp</dimen>
160
161 <!-- The line height for emergency info hint.-->
162 <dimen name="emergency_info_hint_line_height">20sp</dimen>
163
164 <!-- The line height for confirmed emergency info.-->
165 <dimen name="confirmed_emergency_info_line_height">24sp</dimen>
Wesley.CW Wang7fce0e82018-07-17 18:05:09 +0800166
167 <!-- The width for emergency number title container.-->
168 <dimen name="emergency_number_title_container_width">210dp</dimen>
169
Youming Ye9dbbd012019-03-04 10:53:00 -0800170 <!-- The text size for titles in settings page.-->
171 <dimen name="dialer_head1_font_size">18dp</dimen>
172
173 <!-- The text size for items in settings page.-->
174 <dimen name="dialer_primary2_font_size">16dp</dimen>
175
176 <!-- The text size for description in settings page.-->
177 <dimen name="dialer_secondary_font_size">14dp</dimen>
Leo Hsuac620cf2019-05-13 14:26:52 +0800178
179
180 <!-- Shortcut view vertical dimens. These values are tuned according to display
181 height in values-h<height>dp/dimens.xml -->
182 <!-- Height and vertical margin for the emergency information button. -->
183 <dimen name="emergency_info_button_height">74dp</dimen>
184 <dimen name="emergency_info_button_margin_top">32dp</dimen>
185 <dimen name="emergency_info_button_margin_bottom">37dp</dimen>
186
187 <!-- The text size of emergency info name and hint -->
188 <dimen name="emergency_info_name_text_size">16.9sp</dimen>
189 <dimen name="emergency_info_hint_text_size">12.3sp</dimen>
190 <dimen name="emergency_info_tap_hint_text_size">13.8sp</dimen>
191
192 <!-- The height for title of emergency number and location info. -->
193 <dimen name="emergency_number_title_height">37dp</dimen>
194 <!-- The text size for emergency number title.-->
195 <dimen name="emergency_number_title_text_size">10.7sp</dimen>
196
197 <!-- The height and width for the image of location info.-->
198 <dimen name="location_image_height">12.3dp</dimen>
199 <dimen name="location_image_width">12.3dp</dimen>
200
201 <!-- The text size for emergency location.-->
202 <dimen name="emergency_location_text_size">10.7sp</dimen>
203
204 <!-- The height and margin for button of emergency shortcut. -->
205 <dimen name="emergency_shortcut_button_height">74dp</dimen>
206 <dimen name="emergency_shortcut_button_margin_bottom">6.2dp</dimen>
207
208 <!-- The text size of emergency number, type and hint -->
209 <dimen name="emergency_shortcut_number_text_size">25sp</dimen>
210 <dimen name="emergency_shortcut_type_text_size">10.7sp</dimen>
211 <dimen name="emergency_shortcut_tap_hint_text_size">13.8sp</dimen>
212
213 <!-- The height and width for the image of phone number type.-->
214 <dimen name="phone_number_type_image_height">31dp</dimen>
215 <dimen name="phone_number_type_image_width">31dp</dimen>
216
217 <!-- The height and width of phone icon.-->
218 <dimen name="phone_icon_height">18.4dp</dimen>
219 <dimen name="phone_icon_width">18.4dp</dimen>
220
221 <!-- Margin of dialpad button -->
222 <dimen name="emergency_dialer_dialpad_button_margin">25dp</dimen>
223
224 <!-- The height and width for the dialpad button -->
225 <dimen name="dialpad_button_height">43dp</dimen>
226 <dimen name="dialpad_button_width">43dp</dimen>
227 <!-- End of Shortcut view vertical dimens. -->
Santos Cordon7d4ddf62013-07-10 11:58:08 -0700228</resources>