-
public interface Transition<R>An interface that allows a transition to be applied to Views in s in across resource types. Targets that wrap views will be able to provide all of the necessary arguments and start the transition. Those that do not will be unable to provide the necessary arguments and will therefore be forced to ignore the transition. This interface is a compromise that allows view specific transition in ImageModule complex world of arbitrary resource types and arbitrary target types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTransition.ViewAdapterAn interface wrapping a view that exposes the necessary methods to run the various types ofandroid animations as transitions: (ViewTransition, ViewPropertyTransition andanimated Drawables).
-
Method Summary
Modifier and Type Method Description abstract booleantransition(R current, Transition.ViewAdapter adapter)Animates from the previous Drawable that is currently beingdisplayed in the given view, if not null, to the new resource that should be displayed in theview. -
-
Method Detail
-
transition
abstract boolean transition(R current, Transition.ViewAdapter adapter)
Animates from the previous Drawable that is currently beingdisplayed in the given view, if not null, to the new resource that should be displayed in theview.
- Parameters:
current- The new resource that will be displayed in the view.adapter- The ViewAdapter wrapping a view that can at least return anView from getView.
-
-
-
-