Home | History | Annotate | Download | only in drawable

Lines Matching defs:Transition

42  * keyframes may optionally be defined using transition elements.
47 * <code>&lt;transition></code> element.
66 private static final String ELEMENT_TRANSITION = "transition";
71 /** The currently running transition, if any. */
72 private Transition mTransition;
74 /** Index to be set after the transition ends. */
119 * Adds a new transition between keyframes.
123 * @param transition An {@link Animatable} drawable to use as a transition, may not be null
124 * @param reversible Whether the transition can be reversed
127 @NonNull T transition, boolean reversible) {
128 if (transition == null) {
129 throw new IllegalArgumentException("Transition drawable must not be null");
132 mState.addTransition(fromId, toId, transition, reversible);
143 // valid transition to it or jump directly there.
161 final Transition currentTransition = mTransition;
174 // Start the next transition from the end of the current one.
198 // Couldn't select a transition.
204 // This may fail if we're already on the transition, but that's okay!
207 final Transition transition;
212 transition = new AnimationDrawableTransition((AnimationDrawable) d,
217 transition = new AnimatedVectorDrawableTransition((AnimatedVectorDrawable) d,
220 transition = new AnimatableTransition((Animatable) d);
222 // We don't know how to animate this transition.
226 transition.start();
228 mTransition = transition;
234 private static abstract class Transition {
247 private static class AnimatableTransition extends Transition {
266 private static class AnimationDrawableTransition extends Transition {
308 private static class AnimatedVectorDrawableTransition extends Transition {
311 // mReversed is indicating the current transition's direction.
314 // mHasReversibleFlag is indicating whether the whole transition has
328 // When the transition's XML says it is not reversible, then we obey
330 // This will help the single direction transition.
487 + ": <transition> tag requires a 'drawable' attribute or "
552 // REVERSED_BIT is indicating the current transition's direction.
555 // REVERSIBLE_FLAG_BIT is indicating whether the whole transition has