How do you animate the change of background color of a view on Android?
For example:
I have a view with a red background color. The background color of the
The documentation on XML powered animations is horrible. I've searched around hours just to animate the background color of a button when pressing... The sad thing is that the animation is only one attribute away: You can use exitFadeDuration
in the selector
:
-
-
Then just use it as background
for your view. No Java/Kotlin code needed.