summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2015-05-18 18:25:41 -0700
committerHans Boehm <hboehm@google.com>2015-05-20 18:32:11 -0700
commit61568a15c8d88d86aba14a7800d0bfb46f22c8ba (patch)
tree6b52a21a4a389a6a563bd94aa31a499e7e84b982 /res/layout
parentffda52845ca6cca5f72795706988a11f6bcf5b03 (diff)
downloadandroid_packages_apps_ExactCalculator-61568a15c8d88d86aba14a7800d0bfb46f22c8ba.tar.gz
android_packages_apps_ExactCalculator-61568a15c8d88d86aba14a7800d0bfb46f22c8ba.tar.bz2
android_packages_apps_ExactCalculator-61568a15c8d88d86aba14a7800d0bfb46f22c8ba.zip
Prevent scrolling of finite results.
Bug: 20562484 Inhibit scrolling past the last nonzero digit when we can identify it. Increase length of immediate result a bit, to make it closer to the L calculator. On "=", expand less for scrollable results, more for short non-scrollable results. This allows us to use larger fonts for short finite results. Fix up animation logic when displaying result. The old version was never quite right, and became more visibly wrong with variable enlargement. This version is simpler and seems to give much better results. This still does not add ellipsis at the right end of a result. But it is now easily possible to tell whether a result is known finite by attempting to scroll it. That may be good enough. Remove some obsolete TODO entries. Change-Id: I25a842a743e1c27191ca18ac69aa9eef0f0ea9b1
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/display.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/layout/display.xml b/res/layout/display.xml
index 1fe2cf7..d50d09f 100644
--- a/res/layout/display.xml
+++ b/res/layout/display.xml
@@ -53,7 +53,7 @@
<!--
We lay the result out to full width, but are careful to use only
- 2/3 of the space, so that we have room when we expand.
+ 4/5 of the space, so that we have room when we expand.
-->
<com.android.calculator2.CalculatorResult
android:id="@+id/result"