R
- The type of the resource that will be transitioned into a view.public class ViewTransition<R> extends Object implements Transition<R>
Transition
that can apply a Animation
to a
View
using
View.startAnimation(android.view.animation.Animation)
.Transition.ViewAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
transition(R current,
Transition.ViewAdapter adapter)
Always clears the current animation on the view using
View.clearAnimation() , then starts the
Animation given in the constructor using
View.startAnimation(android.view.animation.Animation) and then returns
false because the animation does not actually put the current resource on the view. |
public boolean transition(R current, Transition.ViewAdapter adapter)
View.clearAnimation()
, then starts the
Animation
given in the constructor using
View.startAnimation(android.view.animation.Animation)
and then returns
false
because the animation does not actually put the current resource on the view.transition
in interface Transition<R>
current
- The new resource that will be displayed in the view.adapter
- The Transition.ViewAdapter
wrapping a view that can at least return an
View
from Transition.ViewAdapter.getView()
.