summaryrefslogtreecommitdiffstats
path: root/res/values-w520dp-h275dp-land
diff options
context:
space:
mode:
authorJustin Klaassen <justinklaassen@google.com>2016-08-03 00:41:31 -0700
committerJustin Klaassen <justinklaassen@google.com>2016-08-03 00:49:10 -0700
commitd06f51dc5f5e613354b767adcc02bc0b5d246b63 (patch)
treef3a7a500a81647b8113d50283e1a645eb5864256 /res/values-w520dp-h275dp-land
parent5c3549bd84dfc1e36a93f20bfc4dd878511eb48c (diff)
downloadandroid_packages_apps_ExactCalculator-d06f51dc5f5e613354b767adcc02bc0b5d246b63.tar.gz
android_packages_apps_ExactCalculator-d06f51dc5f5e613354b767adcc02bc0b5d246b63.tar.bz2
android_packages_apps_ExactCalculator-d06f51dc5f5e613354b767adcc02bc0b5d246b63.zip
Polish layout configurations
Bug: 30089158 - Match previous fullscreen layouts on supported devices. - Prevent clipping in some MW layouts. - Experimental support for freeform: adb shell settings put global enable_freeform_support 1 Change-Id: Ia6568d337709fa1b1420d88cb3c701e048ce7a25
Diffstat (limited to 'res/values-w520dp-h275dp-land')
-rw-r--r--res/values-w520dp-h275dp-land/layout.xml23
-rw-r--r--res/values-w520dp-h275dp-land/styles.xml93
2 files changed, 116 insertions, 0 deletions
diff --git a/res/values-w520dp-h275dp-land/layout.xml b/res/values-w520dp-h275dp-land/layout.xml
new file mode 100644
index 0000000..15b5b1b
--- /dev/null
+++ b/res/values-w520dp-h275dp-land/layout.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 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>
+ <item name="activity_calculator" type="layout">@layout/activity_calculator_land</item>
+ <item name="display" type="layout">@layout/display_two_line</item>
+ <item name="pad_advanced" type="layout">@layout/pad_advanced_3x5</item>
+ <item name="pad_operator" type="layout">@layout/pad_operator_two_col</item>
+</resources>
diff --git a/res/values-w520dp-h275dp-land/styles.xml b/res/values-w520dp-h275dp-land/styles.xml
new file mode 100644
index 0000000..9d66a9b
--- /dev/null
+++ b/res/values-w520dp-h275dp-land/styles.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 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 xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <style name="DisplayTextStyle.Formula">
+ <item name="android:paddingTop">2dip</item>
+ <item name="android:paddingBottom">8dip</item>
+ <item name="android:paddingStart">36dip</item>
+ <item name="android:paddingEnd">36dip</item>
+ <item name="minTextSize">28dip</item>
+ <item name="maxTextSize">28dip</item>
+ <item name="stepTextSize">8dip</item>
+ </style>
+
+ <style name="DisplayTextStyle.Result">
+ <item name="android:paddingTop">8dip</item>
+ <item name="android:paddingBottom">16dip</item>
+ <item name="android:paddingStart">36dip</item>
+ <item name="android:paddingEnd">36dip</item>
+ <item name="android:textSize">28dip</item>
+ </style>
+
+ <style name="PadButtonStyle.Advanced">
+ <item name="android:background">@drawable/pad_button_advanced_background</item>
+ <item name="android:textColor">@color/pad_button_advanced_text_color</item>
+ <item name="android:textSize">17dip</item>
+ </style>
+
+ <style name="PadButtonStyle.Advanced.Text">
+ <item name="android:textAllCaps">true</item>
+ <item name="android:textSize">14dip</item>
+ </style>
+
+ <style name="PadButtonStyle.Numeric">
+ <item name="android:textSize">20dip</item>
+ </style>
+
+ <style name="PadButtonStyle.Numeric.Equals">
+ <item name="android:visibility">gone</item>
+ </style>
+
+ <style name="PadButtonStyle.Operator">
+ <item name="android:textSize">17dip</item>
+ </style>
+
+ <style name="PadButtonStyle.Operator.Text">
+ <item name="android:textAllCaps">true</item>
+ <item name="android:textSize">14dip</item>
+ </style>
+
+ <style name="PadLayoutStyle.Advanced">
+ <item name="android:layout_weight">5</item>
+ <item name="android:layout_width">0dip</item>
+ <item name="android:paddingTop">2dip</item>
+ <item name="android:paddingBottom">8dip</item>
+ <item name="android:paddingStart">12dip</item>
+ <item name="android:paddingEnd">12dip</item>
+ </style>
+
+ <style name="PadLayoutStyle.Numeric">
+ <item name="android:layout_width">0dip</item>
+ <item name="android:layout_weight">5</item>
+ <item name="android:paddingTop">2dip</item>
+ <item name="android:paddingBottom">8dip</item>
+ <item name="android:paddingStart">12dip</item>
+ <item name="android:paddingEnd">12dip</item>
+ </style>
+
+ <style name="PadLayoutStyle.Operator">
+ <item name="android:layout_width">0dip</item>
+ <item name="android:layout_weight">3</item>
+ <item name="android:paddingTop">2dip</item>
+ <item name="android:paddingBottom">8dip</item>
+ <item name="android:paddingStart">12dip</item>
+ <item name="android:paddingEnd">12dip</item>
+ </style>
+
+</resources>