I need to make some text (currently in a TextView
) blink for a few seconds. There's several answers on how to do it in java here, but since Kotlin has some syntax/language features that java doesn't, I'm asking what is the most concise way you found to make text blink on Android using Kotlin.
While I'm aiming at making a fading/smooth blink, I'm open to approaches that would make a non smooth blink too.
Note that I'm also looking at lightweight code performance wise.
Thanks for your answers!