CrossfadeTransition

class CrossfadeTransition @JvmOverloads() constructor(target: TransitionTarget, result: ImageResult, durationMillis: Int, preferExactIntrinsicSize: Boolean) : Transition

A Transition that crossfades from the current drawable to a new one.

Parameters

durationMillis

The duration of the animation in milliseconds.

preferExactIntrinsicSize

Constructors

CrossfadeTransition
Link copied to clipboard
fun CrossfadeTransition(target: TransitionTarget, result: ImageResult, durationMillis: Int = CrossfadeDrawable.DEFAULT_DURATION, preferExactIntrinsicSize: Boolean = false)
The duration of the animation in milliseconds.

Types

Factory
Link copied to clipboard
class Factory @JvmOverloads() constructor(durationMillis: Int, preferExactIntrinsicSize: Boolean) : Transition.Factory

Functions

transition
Link copied to clipboard
open override fun transition()
Start the transition animation.

Properties

durationMillis
Link copied to clipboard
val durationMillis: Int
The duration of the animation in milliseconds.
preferExactIntrinsicSize
Link copied to clipboard