diff options
author | Andrei Stingaceanu <stg@google.com> | 2016-12-14 17:38:19 +0000 |
---|---|---|
committer | Andrei Stingaceanu <stg@google.com> | 2017-01-13 11:52:00 +0000 |
commit | 564328b21e739ad6455e5ee392adf455cc035b49 (patch) | |
tree | 55e1d92299abb16aede28b28a468ab0ac9b620d6 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | ab97986977273c33fdac4c2e0ac4a28ab2f91a1a (diff) |
AutoSize TextView (part 6) - introduce autoSizeMaxTextSize
Using textSize as maxTextSize for autosizing is buggy and
unclean. Introduce and use new autoSizeMaxTextSize attribute for
TextView.
Also while doing this optimized the auto-size process by removing
unnecessary computations:
1. If auto-size is enabled than setTextSize(...) is no-op.
2. After setting the text size internally and from the auto-size
context onMeasure() will stop doing another round of redundant
measurements..
Bug: 33449596
Bug: 32221168
Test: atttached in the same topic
Change-Id: Ieecaea6df0aebb4c182bdd1114e3c6fc5066bed1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions