1 <?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 <!-- Amount of vertical space to reserve for the MultiWaveView widget 29 while an incoming call is ringing. 30 This is used as the bottom margin for the "call info container" 31 of the in-call UI while an incoming call is ringing, to prevent 32 the call info from overlapping with the incoming-call widget. 33 34 The incoming-call widget takes up more vertical space than the 35 regular in-call button cluster, so this value is larger than 36 in_call_control_height_active. --> 37 <dimen name="in_call_incoming_call_widget_height">260dp</dimen> 38 39 <!-- Padding at the left and right edges of the "call banner". --> 40 <dimen name="call_banner_side_padding">24dp</dimen> 41 <!-- Padding at the top and bottom edges of the "call banner". --> 42 <dimen name="call_banner_top_bottom_padding">16dp</dimen> 43 44 <!-- Padding for the "call state label" at the bottom of the banner. --> 45 <dimen name="call_state_label_right_padding">10dp</dimen> 46 <dimen name="call_state_label_top_bottom_padding">5dp</dimen> 47 48 <!-- Right padding for name and number fields in the call banner. 49 This padding is used to ensure that ultra-long names or 50 numbers won't overlap the elapsed time indication. --> 51 <dimen name="call_banner_name_number_right_padding">50sp</dimen> 52 53 <!-- Height of the main row of in-call buttons. --> 54 <dimen name="in_call_button_height">76dp</dimen> 55 56 <!-- Width of buttons in the main row of in-call buttons. 57 NOTE these buttons are wider on some devices; see values-w360dp/dimens.xml --> 58 <dimen name="in_call_button_width">56dp</dimen> 59 60 <!-- Height of the in-call "End" button. --> 61 <dimen name="in_call_end_button_height">74dp</dimen> 62 63 <!-- Padding at the left and right edges of the incall_touch_ui button 64 cluster. This padding is necessary because we can't allow the 65 buttons to be very close to the edges of the screen, due to the 66 risk of false touches (from your finger wrapping around while 67 holding the phone, *before* moving it up to your face and having 68 the prox sensor kick in.) --> 69 <dimen name="button_cluster_side_padding">20dp</dimen> 70 71 72 <!-- Contact photo dimensions --> 73 <dimen name="contact_photo_inset_width">180dp</dimen> 74 <dimen name="contact_photo_inset_height">180dp</dimen> 75 <dimen name="contact_photo_inset_left_margin">0dp</dimen> 76 77 78 <!-- Dimensions for OTA Call Card --> 79 <dimen name="otabase_layout_marginTop">30dp</dimen> 80 <dimen name="otabase_minHeight">270dp</dimen> 81 <dimen name="otaactivate_layout_marginTop">10dp</dimen> 82 <dimen name="otalistenprogress_layout_marginTop">5dp</dimen> 83 <dimen name="otasuccessfail_layout_marginTop">10dp</dimen> 84 85 86 <!-- Dimensions for Emergency Dialer and dialpad inside the in-call screen --> 87 <dimen name="dialpad_horizontal_margin">4dp</dimen> 88 <dimen name="dialpad_vertical_margin">2dp</dimen> 89 <dimen name="dialpad_digits_text_size">35sp</dimen> 90 <!-- Just used in landscape mode --> 91 <dimen name="emergency_dialer_digits_height">0px</dimen> 92 93 <!-- Top margin for the "Calling via ..." provider badge, which is 94 displayed for a few seconds at the start of any outgoing call 95 using a gateway provider (see InCallScreen.updateProviderOverlay()). 96 Currently, this badge floats on top of the normal in-call UI, and 97 the value here is used to position the badge vertically so that 98 it doesn't cover up the "call banner" or any onscreen buttons. 99 TODO: Integrate the badge more smoothly into the call banner, 100 rather than using an overlay element at all (bug 5045539). --> 101 <dimen name="provider_overlay_top_margin">160dp</dimen> 102 103 <!-- Layout weight values for dialpad screen. These layouts will be used in one 104 LinearLayout (dialpad_fragment.xml), configuring dialpad screen's vertical 105 ratio. --> 106 <integer name="dialpad_layout_weight_digits">20</integer> 107 <integer name="dialpad_layout_weight_dialpad">65</integer> 108 <integer name="dialpad_layout_weight_additional_buttons">15</integer> 109 </resources> 110