aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-03-30 08:42:46 -0700
committerTor Norbye <tnorbye@google.com>2011-04-01 13:16:00 -0700
commit2fa8370664b25f391eb15dc22a3daa2d55d2b883 (patch)
tree0e1c228a801ccf5a82eedebf77f48fee515c4e02 /layoutlib_api/src
parentf979b9484623279babee7efb57231442e3318d98 (diff)
downloadsdk-2fa8370664b25f391eb15dc22a3daa2d55d2b883.zip
sdk-2fa8370664b25f391eb15dc22a3daa2d55d2b883.tar.gz
sdk-2fa8370664b25f391eb15dc22a3daa2d55d2b883.tar.bz2
Improve view cookie handling
The layout editor is passed a ViewInfo hierarchy by the layout library. For older versions of the layout library, it can be handed hierarchies where the view cookies (which point back to XML model objects corresponding to the rendered views) that are missing or ambiguous. For that reason, it has various algorithms to try to piece things back together, and for example handle <merge> scenarios as best it can. This isn't necessary with layout lib version 5 and higher, since as of version 5 these scenarios are handled on the layout lib side and the layout editor is passed back special cookies like the MergeCookie to properly handle the various scenarios. This fix makes the layout editor look up the layoutlib version, and if dealing with version 5 or higher, it takes a simpler path to build up the hierarchy. This is also necessary to deal with the latest version of layoutlib which passes a new type of view cookie which the older algorithm couldn't handle. Change-Id: I98c3ba5d17ad9d639eb118e4709c0b6bbf815b0a
Diffstat (limited to 'layoutlib_api/src')
-rw-r--r--layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java b/layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java
index 2f79038..6620571 100644
--- a/layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java
+++ b/layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java
@@ -24,7 +24,7 @@ public enum Capability {
/** Ability to render at full size, as required by the layout, and unbound by the screen */
UNBOUND_RENDERING,
/** Ability to override the background of the rendering with transparency using
- * {@link SessionParams#setCustomBackgroundColor(int)} */
+ * {@link SessionParams#setOverrideBgColor(int)} */
CUSTOM_BACKGROUND_COLOR,
/** Ability to call {@link RenderSession#render()} and {@link RenderSession#render(long)}. */
RENDER,