OSDN Git Service

docs: Added note in LayoutTransition class reference that APPEARING
authorKevin Hufnagle <khufnagle@google.com>
Mon, 19 Sep 2016 19:02:33 +0000 (12:02 -0700)
committerKevin Hufnagle <khufnagle@google.com>
Mon, 19 Sep 2016 19:02:33 +0000 (12:02 -0700)
and DISAPPEARING animation timelines cannot overlap

Bug: 16808571
Change-Id: I8cbac11da4f866f2d3bcde45996b039e9bdfb801

core/java/android/animation/LayoutTransition.java

index cdd72be..5a23fdd 100644 (file)
@@ -62,7 +62,11 @@ import java.util.Map;
  * layout will run (closing the gap created in the layout when the item was removed). If this
  * default choreography behavior is not desired, the {@link #setDuration(int, long)} and
  * {@link #setStartDelay(int, long)} of any or all of the animations can be changed as
- * appropriate.</p>
+ * appropriate. Keep in mind, however, that if you start an APPEARING animation before a
+ * DISAPPEARING animation is completed, the DISAPPEARING animation stops, and any effects from
+ * the DISAPPEARING animation are reverted. If you instead start a DISAPPEARING animation
+ * before an APPEARING animation is completed, a similar set of effects occurs for the
+ * APPEARING animation.</p>
  *
  * <p>The animations specified for the transition, both the defaults and any custom animations
  * set on the transition object, are templates only. That is, these animations exist to hold the