๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๊ณณ๊ฐ„์—์„œ ์ธ์‹ฌ๋‚œ๋‹ค

[Android][Animation] 2์ดˆ๋งˆ๋‹ค ๊นœ๋นก์ด๋Š” ์• ๋‹ˆ๋ฉ”์ด์…˜. ์ดˆ๊ฐ„๋‹จ ๊ตฌํ˜„

 

https://developer.android.com/develop/ui/views/animations/prop-animation#choreography

 

Property Animation Overview  |  Android Developers

<!-- TODO: Remove `android-page-banner-left-content` & `android-page-banner-right-content` classes once style changes have made it into production. --> Try the Compose way Jetpack Compose is the recommended UI toolkit for Android. Learn how to use Animatio

developer.android.com

 

AnimatorSet().apply {
    val fadeOut = ObjectAnimator.ofFloat(view, "alpha", 1f, 0f).apply {
        duration = 300
    }
    val fadeInt = ObjectAnimator.ofFloat(view, "alpha", 0f, 1f).apply {
        duration = 300
    }
    playSequentially(fadeOut, fadeInt)
    startDelay = 2000
    start()
    doOnEnd {
        it.start()
    }
}