Recent Changes‎ > ‎

Improved Support for <merge> tags

posted Feb 11, 2011, 9:29 PM by Tor Norbye   [ updated Feb 11, 2011, 9:44 PM ]
Layouts with <merge> tags are better supported now. As is the case for many other features listed on this page, this requires the rendering target to be set to Android 3.0 since it depends on the various layoutlib improvements Xavier has been working on. 

We added preliminary support for <merge> tags in ADT R9, but in ADT R10 many features are improved. In particular:
  • The Outline will now list all the top level children of the <merge> tag
  • Support for highlighting multiple views that correspond to a single XML node (the <merge> tag)
  • Layouts that include multiple layouts with <merge> at their roots should no longer make the editor confused
  • Mouse handling should properly pick the topmost widget on clicks rather than the widget on the bottom
  • Handle dragging into a <merge> view
Similarly, layouts wrapped inside GestureOverlayViews should work better now as well.