R- The type of the resource whose entrance will be transitioned.
public interface Transition<R>
Targets 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 Glide's complex world of arbitrary resource types and arbitrary target types.
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Animates from the previous
boolean transition(R current, Transition.ViewAdapter adapter)
Drawablethat is currently being displayed in the given view, if not null, to the new resource that should be displayed in the view.
current- The new resource that will be displayed in the view.
Transition.ViewAdapterwrapping a view that can at least return an