I\'ve been playing with Android programming on and off for a couple of weeks, and I\'m trying to get something to work that seems simple, but I think I am missing something.
private fun applyColorFade(fromColor: Int, toColor: Int) { ObjectAnimator.ofObject( toolbar, "backgroundColor", ArgbEvaluator(), fromColor, toColor ).apply { duration = 2000 startDelay = 200 start() } }
// this is a reusable method for color fade animation for a view