R
- The type of the resource whose entrance will be transitioned.public interface Transition<R>
View
s in Target
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 Glide's
complex world of arbitrary resource types and arbitrary target types.限定符和类型 | 接口和说明 |
---|---|
static interface |
Transition.ViewAdapter
An interface wrapping a view that exposes the necessary methods to run the various types of
android animations as transitions: (
ViewTransition , ViewPropertyTransition and
animated Drawable s). |
限定符和类型 | 方法和说明 |
---|---|
boolean |
transition(R current,
Transition.ViewAdapter adapter)
Animates from the previous
Drawable that is currently being
displayed in the given view, if not null, to the new resource that should be displayed in the
view. |
boolean transition(R current, Transition.ViewAdapter adapter)
Drawable
that 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.adapter
- The Transition.ViewAdapter
wrapping a view that can at least return an
View
from Transition.ViewAdapter.getView()
.