summaryrefslogtreecommitdiffstats
path: root/res/values-sw360dp
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/values-sw360dp
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/values-sw360dp')
-rw-r--r--res/values-sw360dp/dimens.xml37
1 files changed, 37 insertions, 0 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