diff options
author | Tor Norbye <tnorbye@google.com> | 2011-06-09 17:44:03 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-06-13 11:28:32 -0700 |
commit | 8c3f16ae7d66cedf70c494de3a38a54e90f2a54e (patch) | |
tree | ab5f8c7ebf5b198ad58f84dfcd887a405b85ca68 /ide_common/src | |
parent | f03ec978e97330f1611bca3fe63b11279c07febd (diff) | |
download | sdk-8c3f16ae7d66cedf70c494de3a38a54e90f2a54e.zip sdk-8c3f16ae7d66cedf70c494de3a38a54e90f2a54e.tar.gz sdk-8c3f16ae7d66cedf70c494de3a38a54e90f2a54e.tar.bz2 |
Merge 0b95acc1 from master to r12. do not merge.
RelativeLayout: Assign ids dynamically, handle multi-drag, bugs
This CL fixes three issues with the new relative layout interaction:
(1) Assign ids dynamically. Before this changeset you couldn't attach
to a node which does not have an @id attribute, since layout
params need to name the constraint by id.
This changeset changes this such that you can attach to any
arbitrary edge, and when you commit the drag, a unique id is
generated on the fly and assigned to the node.
(2) Handle dragging multiple nodes at the same time. The new
constraints code was unconditionally applying the same constraints
to all the dragged nodes, which meant they ended up on top of each
other. This fixes things such that the first node is assigned the
new constraints, and then all subsequent nodes are attached one
next to the other, in a direction depending on which edge you
attached to (e.g. attaching on the right will arrange the siblings
towards the left out from the edge.)
(3) Fix a bug in the code to detect and prevent cycles.
Change-Id: I3da16903ffac6c34a0d5efee52a87824fb9e04fb
Diffstat (limited to 'ide_common/src')
0 files changed, 0 insertions, 0 deletions