diff options
author | Justin Klaassen <justinklaassen@google.com> | 2016-08-03 00:41:31 -0700 |
---|---|---|
committer | Justin Klaassen <justinklaassen@google.com> | 2016-08-03 00:49:10 -0700 |
commit | d06f51dc5f5e613354b767adcc02bc0b5d246b63 (patch) | |
tree | f3a7a500a81647b8113d50283e1a645eb5864256 /res/values-w375dp-h768dp-port | |
parent | 5c3549bd84dfc1e36a93f20bfc4dd878511eb48c (diff) | |
download | android_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-w375dp-h768dp-port')
-rw-r--r-- | res/values-w375dp-h768dp-port/layout.xml | 23 | ||||
-rw-r--r-- | res/values-w375dp-h768dp-port/styles.xml | 93 |
2 files changed, 116 insertions, 0 deletions
diff --git a/res/values-w375dp-h768dp-port/layout.xml b/res/values-w375dp-h768dp-port/layout.xml new file mode 100644 index 0000000..98db0fe --- /dev/null +++ b/res/values-w375dp-h768dp-port/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_tablet_port</item> + <item name="display" type="layout">@layout/display_two_line</item> + <item name="pad_advanced" type="layout">@layout/pad_advanced_5x3</item> + <item name="pad_operator" type="layout">@layout/pad_operator_two_col</item> +</resources> diff --git a/res/values-w375dp-h768dp-port/styles.xml b/res/values-w375dp-h768dp-port/styles.xml new file mode 100644 index 0000000..ec91033 --- /dev/null +++ b/res/values-w375dp-h768dp-port/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">16dip</item> + <item name="android:paddingBottom">32dip</item> + <item name="android:paddingStart">44dip</item> + <item name="android:paddingEnd">44dip</item> + <item name="minTextSize">48dip</item> + <item name="maxTextSize">72dip</item> + <item name="stepTextSize">8dip</item> + </style> + + <style name="DisplayTextStyle.Result"> + <item name="android:paddingTop">20dip</item> + <item name="android:paddingBottom">48dip</item> + <item name="android:paddingStart">44dip</item> + <item name="android:paddingEnd">44dip</item> + <item name="android:textSize">48dip</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">27dip</item> + </style> + + <style name="PadButtonStyle.Advanced.Text"> + <item name="android:textAllCaps">true</item> + <item name="android:textSize">24dip</item> + </style> + + <style name="PadButtonStyle.Numeric"> + <item name="android:textSize">36dip</item> + </style> + + <style name="PadButtonStyle.Numeric.Equals"> + <item name="android:visibility">gone</item> + </style> + + <style name="PadButtonStyle.Operator"> + <item name="android:textSize">36dip</item> + </style> + + <style name="PadButtonStyle.Operator.Text"> + <item name="android:textAllCaps">true</item> + <item name="android:textSize">24dip</item> + </style> + + <style name="PadLayoutStyle.Advanced"> + <item name="android:layout_height">0dip</item> + <item name="android:layout_weight">264</item> + <item name="android:paddingTop">8dip</item> + <item name="android:paddingBottom">8dip</item> + <item name="android:paddingStart">16dip</item> + <item name="android:paddingEnd">16dip</item> + </style> + + <style name="PadLayoutStyle.Numeric"> + <item name="android:layout_width">0dip</item> + <item name="android:layout_weight">500</item> + <item name="android:paddingTop">8dip</item> + <item name="android:paddingBottom">8dip</item> + <item name="android:paddingStart">16dip</item> + <item name="android:paddingEnd">16dip</item> + </style> + + <style name="PadLayoutStyle.Operator"> + <item name="android:layout_width">0dip</item> + <item name="android:layout_weight">264</item> + <item name="android:paddingTop">8dip</item> + <item name="android:paddingBottom">8dip</item> + <item name="android:paddingStart">4dip</item> + <item name="android:paddingEnd">8dip</item> + </style> + +</resources> |