Files
frameworks_base/core/java/android
Alan Viverette 40e1df34a9 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
2015-08-25 16:50:27 -04:00
..
2015-08-24 16:42:37 +00:00
2015-08-25 14:07:02 -04:00