diff options
author | Andrei Stingaceanu <stg@google.com> | 2017-01-27 15:31:19 +0000 |
---|---|---|
committer | Andrei Stingaceanu <stg@google.com> | 2017-02-08 12:48:21 +0000 |
commit | 9fe208fe6b0c0aef797a2d3757f50b88ecd86a0c (patch) | |
tree | bb9e5f807e2d2ed49a1c3f977c92cc9941208338 /keystore/java/android/security/KeyChain.java | |
parent | 155c3a88ac6e6b690fb3324054abfcc8095e9cc3 (diff) |
AutoSize TextView (part 8) - APIs for predefined sizes
* getter/setter for predefined sizes
* reads and configures from XML at construction time
* fix for an ugly bug where the sizes were missing an
entry in certain cases, e.g: min = 10; max = 20;
step = 2 would have produced [10, 12, 14, 16, 18]
instead of [10, 12, 14, 16, 18, 20]
* fix using getHeight()/getWidth() instead of
untrusted getMeasuredHeight()/getMeasuredWidth()
and move the auto-sizing triggering to
onLayout() instead of onMeasure() (while manually
testing discovered missing or extra pixels and
sometimes resizing being skipped - it's all fixed
now)
* fix using deceiving getTotalPaddingBottom()/...Top()
and replaced with getExtendedPaddingBottom()/..Top()
(getTotal... was removing the whitespace height but
auto-size needs to know about it so it can fill the
space)
Bug: 32221168
Test: attached in the same topic
run cts-dev -m CtsWidgetTestCases -t \
android.widget.cts.TextViewTest
Change-Id: Id5a31d0d32b2b4082af45b4bd65af8cb85bdc92e
Diffstat (limited to 'keystore/java/android/security/KeyChain.java')
0 files changed, 0 insertions, 0 deletions