aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/ide/common/rendering/api
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-01-09 14:21:03 -0800
committerXavier Ducrohet <xav@android.com>2011-01-09 14:27:12 -0800
commit7470fd652e83f8df651672b8d223442ef9d9170a (patch)
tree265f4391f8ad97aca9294e90ca01f9472a19a1f8 /layoutlib_api/src/com/android/ide/common/rendering/api
parentfa623a8a182baf168ac6817c8d0fd4591920273b (diff)
downloadsdk-7470fd652e83f8df651672b8d223442ef9d9170a.zip
sdk-7470fd652e83f8df651672b8d223442ef9d9170a.tar.gz
sdk-7470fd652e83f8df651672b8d223442ef9d9170a.tar.bz2
More fine grained layoutlib Capability for animation support.
Make the distinction between playing animation, animating view insert/delete/move inside the same viewgroup and animating move across layouts. Change-Id: Ia9a6e4e53425a66a74ddd39796b04ed8c78d4a5a
Diffstat (limited to 'layoutlib_api/src/com/android/ide/common/rendering/api')
-rw-r--r--layoutlib_api/src/com/android/ide/common/rendering/api/Capability.java24
1 files changed, 19 insertions, 5 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 abbab45..fc390db 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
@@ -36,12 +36,26 @@ public enum Capability {
* {@link LayoutScene#insertChild(Object, IXmlPullParser, int, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
* {@link LayoutScene#moveChild(Object, Object, int, java.util.Map, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
* {@link LayoutScene#removeChild(Object, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
- * {@link LayoutScene#setProperty(Object, String, String)}
+ * {@link LayoutScene#setProperty(Object, String, String)}<br>
+ * The method that receives an animation listener can only use it if the
+ * ANIMATED_VIEW_MANIPULATION, or FULL_ANIMATED_VIEW_MANIPULATION is also supported.
+ *
* */
VIEW_MANIPULATION,
- /** Ability to call<br>
+ /** Ability to play animations with<br>
* {@link LayoutScene#animate(Object, String, boolean, com.android.layoutlib.api.LayoutScene.IAnimationListener)}
- * <p>If the bridge also supports {@link #VIEW_MANIPULATION} then those methods can use
- * an {@link com.android.layoutlib.api.LayoutScene.IAnimationListener}, otherwise they won't. */
- ANIMATE;
+ */
+ PLAY_ANIMATION,
+ /**
+ * Ability to manipulate views with animation, as long as the view does not change parent.
+ * {@link LayoutScene#insertChild(Object, IXmlPullParser, int, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
+ * {@link LayoutScene#moveChild(Object, Object, int, java.util.Map, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
+ * {@link LayoutScene#removeChild(Object, com.android.layoutlib.api.LayoutScene.IAnimationListener)}<br>
+ */
+ ANIMATED_VIEW_MANIPULATION,
+ /**
+ * Ability to move views (even into a different ViewGroup) with animation.
+ * see {@link LayoutScene#moveChild(Object, Object, int, java.util.Map, com.android.layoutlib.api.LayoutScene.IAnimationListener)}
+ */
+ FULL_ANIMATED_VIEW_MANIPULATION;
}