diff options
author | Siyamed Sinir <siyamed@google.com> | 2016-05-31 20:39:33 -0700 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2016-06-27 16:36:57 -0700 |
commit | 0745c729653eeeeb6468d4ec9f3ec81b18ff9b64 (patch) | |
tree | 1762c749b3e84bb502ca29e6c386a2798a59eeba /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c5e73868a1174b63cbba2f17491e3b11833e9cc6 (diff) |
StaticLayout visual fix for maxLines
When maxLines is set on StaticLayout, the height calculation includes
the lineSpacing for the lastLine, which causes the ellipsized version
and non-ellipsized version to have different heights. With this CL:
* maxLines is always set on StaticLayout
* the correct line count for a given text is preserved, in other words a
text that would be n lines will not be cut at maxLines.
* The visual height for StaticLayout for ellipsized and non-ellipsized
cases are the same when maxLines is set.
Bug: 28988744
Bug: 18864800
Change-Id: I1e1cae31cf33d503a8cf1c942f422893efc480bb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions