Skip to content

Instantly share code, notes, and snippets.

@ademirqueiroga
Created January 29, 2023 12:29
Show Gist options
  • Save ademirqueiroga/a065ff46b90fff6f58c20b76ee859fcd to your computer and use it in GitHub Desktop.
Save ademirqueiroga/a065ff46b90fff6f58c20b76ee859fcd to your computer and use it in GitHub Desktop.
PlaybackVideoFragment.animateIndicator
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