diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-11-10 23:21:35 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2016-11-10 23:21:35 -0700 |
commit | 1d0f6a72781ee4ebf53aa25514ac4ed8c4e8a6cb (patch) | |
tree | dc92961eb3513d718fdf914244077422865b0d60 | |
parent | 82d19f315fc49a972bc29bd86dbdddb45f13d3b6 (diff) | |
parent | 7879e1f1b257b0fee7e0e7ba85c7a5585cda44fa (diff) | |
download | android_packages_apps_ExactCalculator-1d0f6a72781ee4ebf53aa25514ac4ed8c4e8a6cb.tar.gz android_packages_apps_ExactCalculator-1d0f6a72781ee4ebf53aa25514ac4ed8c4e8a6cb.tar.bz2 android_packages_apps_ExactCalculator-1d0f6a72781ee4ebf53aa25514ac4ed8c4e8a6cb.zip |
Promotion of android_ui.lnx.2.1-00034.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1079560 Iafecc05aa201c809edf185dc58eae067c7ee8874 ExactCalculator: fix UI display issue in split-screen mo
Change-Id: Ib7fc5727f35a101f734f050824e4350f3ac978dd
CRs-Fixed: 1079560
-rwxr-xr-x | res/values-small-port/styles.xml | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/res/values-small-port/styles.xml b/res/values-small-port/styles.xml new file mode 100755 index 0000000..0a868b2 --- /dev/null +++ b/res/values-small-port/styles.xml @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2016, The Linux Foundation. All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of The Linux Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --> + +<!-- Styles for small portrait in split-screen mode, +although the device is in Landscape mode --> +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + + <style name="DisplayTextStyle.Formula"> + <item name="android:paddingTop">2dip</item> + <item name="android:paddingBottom">6dip</item> + <item name="android:paddingStart">36dip</item> + <item name="android:paddingEnd">36dip</item> + <item name="android:textSize">23sp</item> + </style> + + <style name="DisplayTextStyle.Result"> + <item name="android:paddingTop">8dip</item> + <item name="android:paddingBottom">12dip</item> + <item name="android:paddingStart">36dip</item> + <item name="android:paddingEnd">36dip</item> + <item name="android:textSize">23sp</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">14sp</item> + </style> + + <style name="PadButtonStyle.Advanced.Text"> + <item name="android:textAllCaps">true</item> + <item name="android:textSize">12sp</item> + </style> + + <style name="PadButtonStyle.Numeric"> + <item name="android:textSize">22sp</item> + </style> + + <style name="PadButtonStyle.Numeric.Equals"> + <item name="android:visibility">visible</item> + </style> + + <style name="PadButtonStyle.Operator"> + <item name="android:textSize">22sp</item> + </style> + + <style name="PadButtonStyle.Operator.Text"> + <item name="android:textAllCaps">true</item> + <item name="android:textSize">12sp</item> + </style> + + <style name="PadLayoutStyle.Advanced"> + <item name="android:elevation">4dip</item> + <item name="android:paddingTop">4dip</item> + <item name="android:paddingBottom">4dip</item> + <item name="android:paddingStart">8dip</item> + <item name="android:paddingEnd">8dip</item> + </style> + + <style name="PadLayoutStyle.Operator"> + <item name="android:layout_width">0dip</item> + <item name="android:layout_weight">96</item> + <item name="android:paddingTop">4dip</item> + <item name="android:paddingBottom">4dip</item> + <item name="android:paddingStart">4dip</item> + <item name="android:paddingEnd">28dip</item> + </style> + + <style name="PadLayoutStyle.Numeric"> + <item name="android:layout_width">0dip</item> + <item name="android:layout_weight">264</item> + <item name="android:paddingTop">4dip</item> + <item name="android:paddingBottom">4dip</item> + <item name="android:paddingStart">8dip</item> + <item name="android:paddingEnd">8dip</item> + </style> + +</resources> |