summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-11-19 14:15:17 -0800
committerNancy Chen <nancychen@google.com>2014-11-20 17:46:23 -0800
commit7255134d7de05b4060ce12c3611ba2196b72b08b (patch)
treedbe123e5fcce0cde9eb929d49755371c0c69a20b /res
parente4f10f30062ad5ce4cf3dc0e090fce4ce67c26f0 (diff)
downloadandroid_packages_apps_InCallUI-7255134d7de05b4060ce12c3611ba2196b72b08b.tar.gz
android_packages_apps_InCallUI-7255134d7de05b4060ce12c3611ba2196b72b08b.tar.bz2
android_packages_apps_InCallUI-7255134d7de05b4060ce12c3611ba2196b72b08b.zip
Resize InCallUI for small devices.
In the InCallUI for devices smaller than nexus 4, the dialpad digits are squished because the text in the call card is too big. Shrink the text selectively for smaller devices (by moving the current default sizes to the >600dp height devices). See http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch for reference. Bug:18122087 Change-Id: I3eceae520d5039dd18c39434eb548288d8ce4e61
Diffstat (limited to 'res')
-rw-r--r--res/values-sw360dp/dimens.xml37
-rw-r--r--res/values/dimens.xml29
2 files changed, 58 insertions, 8 deletions
diff --git a/res/values-sw360dp/dimens.xml b/res/values-sw360dp/dimens.xml
new file mode 100644
index 00000000..58c81bb9
--- /dev/null
+++ b/res/values-sw360dp/dimens.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2013 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<resources>
+ <!-- Dimensions for CallCard elements (the normal in-call UI) -->
+
+ <!-- Height of the "call banner" overlay on top of the upper part of
+ the call info area. -->
+ <dimen name="call_banner_height">122dp</dimen>
+ <!-- Text size for the name in the call info. -->
+ <dimen name="call_status_text_size">22sp</dimen>
+ <dimen name="call_name_text_size">45dp</dimen>
+ <dimen name="call_name_text_min_size">34sp</dimen>
+ <dimen name="call_label_text_size">18sp</dimen>
+
+ <!-- The InCallUI dialpad will sometimes want digits sizes that are different from dialer. -->
+ <dimen name="dialpad_key_number_margin_bottom">@dimen/dialpad_key_number_default_margin_bottom</dimen>
+ <!-- Zero key should have less space between self and text because "+" is smaller -->
+ <dimen name="dialpad_zero_key_number_margin_bottom">@dimen/dialpad_zero_key_number_default_margin_bottom</dimen>
+ <dimen name="dialpad_digits_adjustable_text_size">@dimen/dialpad_digits_text_size</dimen>
+ <dimen name="dialpad_digits_adjustable_height">@dimen/dialpad_digits_height</dimen>
+ <dimen name="dialpad_key_numbers_size">@dimen/dialpad_key_numbers_default_size</dimen>
+</resources> \ No newline at end of file
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index ee8ecefe..f390f38e 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -18,9 +18,10 @@
<resources>
<!-- Dimensions for CallCard elements (the normal in-call UI) -->
- <!-- Height of the "call banner" overlay on top of the upper part of
- the call info area. -->
- <dimen name="call_banner_height">122dp</dimen>
+ <!-- Height of the "call banner" overlay on top of the upper part of the call info area.
+ Note: This is the default size for small (<600dp height) devices: larger screen sizes apply
+ the values in values-h600dp/dimens.xml. -->
+ <dimen name="call_banner_height">90dp</dimen>
<dimen name="incall_action_bar_elevation">3dp</dimen>
<!-- Margin between the bottom of the "call card" photo
@@ -38,11 +39,13 @@
<!-- Padding at the top and bottom edges of the "provider information" -->
<dimen name="provider_info_top_bottom_padding">8dp</dimen>
- <!-- Text size for the name in the call info. -->
- <dimen name="call_status_text_size">22sp</dimen>
- <dimen name="call_name_text_size">45dp</dimen>
- <dimen name="call_name_text_min_size">34sp</dimen>
- <dimen name="call_label_text_size">18sp</dimen>
+ <!-- Text sizes for information in the call card.
+ Note: These are the default sizes for small (<600dp height) devices: larger screen sizes
+ apply the values in values-h600dp/dimens.xml. -->
+ <dimen name="call_status_text_size">16sp</dimen>
+ <dimen name="call_name_text_size">34dp</dimen>
+ <dimen name="call_name_text_min_size">28sp</dimen>
+ <dimen name="call_label_text_size">16sp</dimen>
<!-- Right padding for name and number fields in the call banner.
This padding is used to ensure that ultra-long names or
numbers won't overlap the elapsed time indication. -->
@@ -54,6 +57,16 @@
<dimen name="primary_call_elevation">5dp</dimen>
<dimen name="dialpad_elevation">2dp</dimen>
+ <!-- The InCallUI dialpad will sometimes want digits sizes that are different from dialer.
+ Note: These are the default sizes for small (<600dp height) devices: larger screen sizes
+ apply the values in values-h600dp/dimens.xml. -->
+ <dimen name="dialpad_key_number_margin_bottom">1dp</dimen>
+ <!-- Zero key should have less space between self and text because "+" is smaller -->
+ <dimen name="dialpad_zero_key_number_margin_bottom">0dp</dimen>
+ <dimen name="dialpad_digits_adjustable_text_size">20sp</dimen>
+ <dimen name="dialpad_digits_adjustable_height">50dp</dimen>
+ <dimen name="dialpad_key_numbers_size">36dp</dimen>
+
<dimen name="floating_action_bar_vertical_offset">-24dp</dimen>
<!-- Padding at the left and right edges of the incall_touch_ui button