setDrawableWithCrossFadingDuration
fun ImageView.setDrawableWithCrossFadingDuration(drawableResolver: DrawableResolver?, durationMs: Int?)
Sets a DrawableResolver with a cross-fading transition of durationMs duration. If durationMs is null
, equal or less than 0
the drawableResolver will be set immediately without cross-fading transition.
Sets a Drawable with a cross-fading transition of durationMs duration. If durationMs is null
, equal or less than 0
the drawable will be set immediately without cross-fading transition.