summaryrefslogtreecommitdiffstats
path: root/res/values-sw800dp-port
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2015-04-03 18:41:52 -0700
committerHans Boehm <hboehm@google.com>2015-04-15 17:56:33 -0700
commit4a6b7cb235c305761af5d7f40e74d4704e5058c8 (patch)
treef5fd7d4bcc2195643c922519f24385924eb4b807 /res/values-sw800dp-port
parentbfe8c22fd15ff965ed97c7245b49565c645c2cee (diff)
downloadandroid_packages_apps_ExactCalculator-4a6b7cb235c305761af5d7f40e74d4704e5058c8.tar.gz
android_packages_apps_ExactCalculator-4a6b7cb235c305761af5d7f40e74d4704e5058c8.tar.bz2
android_packages_apps_ExactCalculator-4a6b7cb235c305761af5d7f40e74d4704e5058c8.zip
Fix UI holes and bugs. Fix eval bugs.
Change layout to make the result display use a fixed font size and limit the number of characters when it appears below the formula. This allows us to always get the proper expansion effect and prevents scrolling from affecting the font size. Add copy support for result display. Add paste support for the formula. Add keyboard input support. Copy/paste can be used to remember old results in the calculator. We save an identifying tag URI in the clip, in addition to text, allowing us to paste old calculator results without precision loss. Copy/paste currently does not rely on selection at all. I had trouble making it work that way in the formula. It's unclear that would be better, since we only allow copy of the entire text and paste at the end. Add a couple of alternate result display options to the overflow menu. (These appear quite useful, were trivial to implement, and give us a better excuse for the overflow menu.) Changed the behavior of the delete key in error state. Changing it to CLEAR seemed unfriendly, since it prevents corrections. This is a change from L. Made it clear that the CalculatorHitSomeButtons test is currently 95% worthless. It was apparentlly failing (due to test infrastructure issues) but throwing an exception in a thread from which it was not getting reported. Decided to keep it, since I would like a place to continue collecting regression tests, even if we can't actually run them yet. Includes some easy drive-by fixes for expression evaluation: a) 2 / 2 * 3 was mis-parsed as 2 / (2 * 3). b) Cosine evaluation had the sense of the test for a rational result reversed. c) Constants without leading digits, like .1, are now handled correctly, and decimal points in the formula are now internationalized. (That's not yet true for the result.) Change-Id: Ic24466b444b4a4633cfb036c67622c7f4fd644ec
Diffstat (limited to 'res/values-sw800dp-port')
-rw-r--r--res/values-sw800dp-port/styles.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/values-sw800dp-port/styles.xml b/res/values-sw800dp-port/styles.xml
index 6ed3886..3aec308 100644
--- a/res/values-sw800dp-port/styles.xml
+++ b/res/values-sw800dp-port/styles.xml
@@ -28,12 +28,12 @@
<item name="stepTextSize">8sp</item>
</style>
- <style name="DisplayEditTextStyle.Result">
+ <style name="DisplayTextStyle.Result">
<item name="android:paddingTop">32dip</item>
<item name="android:paddingBottom">90dip</item>
<item name="android:paddingStart">44dip</item>
<item name="android:paddingEnd">44dip</item>
- <item name="android:textSize">56sp</item>
+ <item name="android:textSize">40sp</item>
</style>
<style name="PadButtonStyle.Advanced">