transition
open fun transition(current: Drawable, adapter: Transition.ViewAdapter): Boolean
Content copied to clipboard
Animates from the previous drawable to the current drawable in one of two ways.
- Using the default animation provided in the constructor if the previous drawable is null
- Using the cross fade animation with the duration provided in the constructor if the previous drawable is non null
Return
True if in the process of running the transition, the new resource was put on the view, false if the caller needs to manually put the current resource on the view.
Parameters
current
The new resource that will be displayed in the view.
adapter
The Transition.ViewAdapter wrapping a view that can at least return an android.view.View from getView.