Skip to content

Instantly share code, notes, and snippets.

@meet30997
Created September 7, 2022 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meet30997/e0eccf81332456d4b51736ad97d71fb1 to your computer and use it in GitHub Desktop.
Save meet30997/e0eccf81332456d4b51736ad97d71fb1 to your computer and use it in GitHub Desktop.
TranslateY Start Animation
val duration = 300L
val startDelay = 300L
// View1
binding.bannerPager.translateYBy(1f, -50, duration, startDelay)
// View2
binding.smallBannerPager.translateYBy(
1f,
-50,
duration,
startDelay + 150
)
// View3
binding.subCategoryRv.translateYBy(
1f,
-50,
duration,
startDelay + 300
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment