transition

abstract fun transition(current: R, adapter: Transition.ViewAdapter): Boolean

Animates from the previous android.graphics.drawable.Drawable that is currently being displayed in the given view, if not null, to the new resource that should be displayed in the view.

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.