Crossfade Painter
constructor(start: Painter?, end: Painter?, contentScale: ContentScale = ContentScale.Fit, duration: Duration = 200.milliseconds, timeSource: TimeSource = TimeSource.Monotonic, fadeStart: Boolean = true, preferExactIntrinsicSize: Boolean = false)
Parameters
start
The Painter to crossfade from.
end
The Painter to crossfade to.
content Scale
The scaling algorithm for start and end.
duration
The duration of the crossfade animation.
time Source
The source for measuring time intervals.
fade Start
If false, the start drawable will not fade out while the end drawable fades in.
prefer Exact Intrinsic Size
If true, this drawable's intrinsic width/height will only be -1 if start and end return -1 for that dimension. If false, the intrinsic width/height will be -1 if start or end return -1 for that dimension. This is useful for views that require an exact intrinsic size to scale the drawable.