summaryrefslogtreecommitdiffstats
path: root/res/values-sw600dp-land
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2015-04-21 13:18:38 -0700
committerHans Boehm <hboehm@google.com>2015-04-28 00:35:23 +0000
commit08e8f322b0d93e06aaa2a15acc869dfd70791461 (patch)
tree030d2d655227ffc3c71b8af92918881d250f0284 /res/values-sw600dp-land
parent9e855e82dc86b3038b3e048a56be77af114e24f4 (diff)
downloadandroid_packages_apps_ExactCalculator-08e8f322b0d93e06aaa2a15acc869dfd70791461.tar.gz
android_packages_apps_ExactCalculator-08e8f322b0d93e06aaa2a15acc869dfd70791461.tar.bz2
android_packages_apps_ExactCalculator-08e8f322b0d93e06aaa2a15acc869dfd70791461.zip
Restructure display formatting, use TextView for formula.
This fixes issues with inappropriate keyboard popups and cleans up the code. This substantially rewrites the result formatting code; it intentionally removes a heuristic to avoid conventional scientific notation for short results, which only seemed to confuse things. There are some other tweaks and simplifications. Transitions to and from conventional scientific notation should be smoother, though there is still an issue with numbers like 10^-30. The formatting code is completely extracted from Evaluator, cutting off various tentacles, and moved to CalculatorResult. Fixes a bug that resulted in digits being inappropriately displayed without an exponent if the decimal point was just off the left edge of the screen. It's still not clear that we should always be integrating the exponent into the result window. Bug: 20483801 Bug: 20480081 Change-Id: I1bb777b871e9fa8b6cd510c533e4b94bde6d4a20
Diffstat (limited to 'res/values-sw600dp-land')
-rw-r--r--res/values-sw600dp-land/styles.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/values-sw600dp-land/styles.xml b/res/values-sw600dp-land/styles.xml
index dcbfeb4..e97f2ab 100644
--- a/res/values-sw600dp-land/styles.xml
+++ b/res/values-sw600dp-land/styles.xml
@@ -18,7 +18,7 @@
<!-- Styles for landscape 600dip-wide tablet (e.g. Nexus 7). -->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
- <style name="DisplayEditTextStyle.Formula">
+ <style name="DisplayTextStyle.Formula">
<item name="android:paddingTop">0dip</item>
<item name="android:paddingBottom">52dip</item>
<item name="android:paddingStart">44dip</item>