diff options
author | Alan Viverette <alanv@google.com> | 2015-08-25 16:50:27 -0400 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2015-08-25 16:50:27 -0400 |
commit | 40e1df34a9549a25020a325d0abc4d43c5a6b6e2 (patch) | |
tree | 5b3a3e5c0458f8ea0386433d3fa705ba4a7990f1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f208a1a0d18c8675f7390d7badab81b39fd23d1b (diff) |
Correctly distribute weight to pre-measured zero-dimension views
Previously, the measurements obtained from LinearLayout when using
EXACTLY and AT_MOST modes would be different even if the resulting
height was the same. This was the result of non-EXACTLY measurement
accounting for the size of zero-dimension views and then redistrib-
uting space as though they had initally been set as AT_MOST, whereas
EXACTLY would always redistribute space as though they had initially
been set as zero-dimension.
Makes perfect sense, right?
This CL updates non-EXACTLY measurement to always calculate the
minimum dimensions requested by zero-dimension views, but then to
redistribute the space according to weight.
Bug: 22810327
Change-Id: Iba8a3d26f2724e5fa9a30457119b4564eb285edb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions