summaryrefslogtreecommitdiffstats
path: root/res/values-land
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-08-18 15:59:02 -0700
committerYorke Lee <yorkelee@google.com>2014-08-18 16:52:23 -0700
commitb7b035ad25437f5b810a8085fa335908d6cc77ae (patch)
tree3a830aab1fd07236a453d46a7e87aca1ece03042 /res/values-land
parent43af52a346443ac8d4c7057215888e6b36d9175b (diff)
downloadpackages_apps_PhoneCommon-b7b035ad25437f5b810a8085fa335908d6cc77ae.tar.gz
packages_apps_PhoneCommon-b7b035ad25437f5b810a8085fa335908d6cc77ae.tar.bz2
packages_apps_PhoneCommon-b7b035ad25437f5b810a8085fa335908d6cc77ae.zip
Fix dialpad layout in landscape mode
Made the necessary adjustments so that the landscape dialpad matches the mocks. Also ensured that large text mode does not break any of the layouts, as far as possible. Bug: 15859030 Change-Id: I23bb426f46d9c1d4a9436e9e02b64fac88a41d7c
Diffstat (limited to 'res/values-land')
-rw-r--r--res/values-land/dimens.xml6
-rw-r--r--res/values-land/styles.xml36
2 files changed, 40 insertions, 2 deletions
diff --git a/res/values-land/dimens.xml b/res/values-land/dimens.xml
index 96547f0..72e6b3d 100644
--- a/res/values-land/dimens.xml
+++ b/res/values-land/dimens.xml
@@ -15,6 +15,8 @@
limitations under the License.
-->
<resources>
- <dimen name="dialpad_key_margin_right">10dp</dimen>
- <dimen name="dialpad_key_text_width">25dp</dimen>
+ <dimen name="dialpad_key_margin_right">5dp</dimen>
+ <dimen name="dialpad_key_text_width">35dp</dimen>
+ <dimen name="dialpad_key_number_width">20sp</dimen>
+ <dimen name="dialpad_symbol_margin_bottom">0dp</dimen>
</resources>
diff --git a/res/values-land/styles.xml b/res/values-land/styles.xml
new file mode 100644
index 0000000..07f4998
--- /dev/null
+++ b/res/values-land/styles.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2014 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>
+ <style name="DialpadKeyNumberStyle">
+ <item name="android:textColor">@color/dialpad_primary_text_color</item>
+ <item name="android:textSize">@dimen/dialpad_key_numbers_size</item>
+ <item name="android:fontFamily">sans-serif-light</item>
+ <item name="android:layout_width">@dimen/dialpad_key_number_width</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:layout_marginBottom">@dimen/dialpad_key_number_margin_bottom</item>
+ </style>
+
+ <style name="DialpadKeyLettersStyle">
+ <item name="android:textColor">@color/dialpad_secondary_text_color</item>
+ <item name="android:textSize">@dimen/dialpad_key_letters_size</item>
+ <item name="android:fontFamily">sans-serif-regular</item>
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:gravity">left</item>
+ </style>
+</resources>