mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 10:20:51 +02:00
Make colors apply on older APIs, Accellerate tooltip amimation
This commit is contained in:
parent
664e0a037e
commit
23bbc8d34c
8 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue