diff options
author | Tor Norbye <tnorbye@google.com> | 2011-06-13 16:12:07 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2011-06-13 16:25:18 -0700 |
commit | fdde9dd8b616e50f2db0fe9ec872718b143339c0 (patch) | |
tree | 23a7ae867ad9c870bb74716336f4030270064718 /ide_common/src/com/android/ide/common | |
parent | 1e9adf720237605516def4ef98922994fa74b01f (diff) | |
download | sdk-fdde9dd8b616e50f2db0fe9ec872718b143339c0.zip sdk-fdde9dd8b616e50f2db0fe9ec872718b143339c0.tar.gz sdk-fdde9dd8b616e50f2db0fe9ec872718b143339c0.tar.bz2 |
When distributing linear layout weights, also set size to 0dp. DO NOT MERGE
When you use the layout actions bar "Distribute Weights" in a
LinearLayout, in addition to setting all the weights to the same
nonzero value, also set the size (the height for a vertical linear
layout and the width for a horizontal one) to 0dp, to ensure that the
widgets are all given the same total size rather than sharing the
remaining space evenly.
In addition, when adding new widgets to a LinearLayout, see if all
elements in the linear layout already have nonzero and equal weights,
and if so duplicate this weight value on the new widget as well, and
similarly also duplicate 0dp/0dip/0px if used.
Change-Id: I78d1c5af05a8b8b54e4d1eb0d426ce592bc1fc69
Diffstat (limited to 'ide_common/src/com/android/ide/common')
0 files changed, 0 insertions, 0 deletions