Created
January 29, 2023 12:29
-
-
Save ademirqueiroga/a065ff46b90fff6f58c20b76ee859fcd to your computer and use it in GitHub Desktop.
PlaybackVideoFragment.animateIndicator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun animateIndicator(indicatorView: View) { | |
indicatorView.animate() | |
.withEndAction { | |
indicatorView.isVisible = false | |
indicatorView.alpha = 1F | |
indicatorView.scaleX = 1F | |
indicatorView.scaleY = 1F | |
} | |
.withStartAction { | |
indicatorView.isVisible = true | |
} | |
.alpha(0.2F) | |
.scaleX(2f) | |
.scaleY(2f) | |
.setDuration(400) | |
.setInterpolator(AccelerateDecelerateInterpolator()) | |
.start() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment