Make colors apply on older APIs, Accellerate tooltip amimation

This commit is contained in:
Finn M Glas 2020-05-22 18:21:30 +02:00
parent 664e0a037e
commit 23bbc8d34c
No known key found for this signature in database
GPG key ID: 25037A2E81AB459C
8 changed files with 10 additions and 2 deletions

View file

@ -47,14 +47,14 @@ fun View.blink(
})
}
fun View.fadeIn(duration: Long = 1000L) {
fun View.fadeIn(duration: Long = 300L) {
startAnimation(AlphaAnimation(0f, 1f).also {
it.interpolator = DecelerateInterpolator()
it.duration = duration
})
}
fun View.fadeOut(duration: Long = 1000L) {
fun View.fadeOut(duration: Long = 300L) {
startAnimation(AlphaAnimation(1f, 0f).also {
it.interpolator = DecelerateInterpolator()
it.duration = duration