Created
September 7, 2022 12:02
-
-
Save meet30997/e0eccf81332456d4b51736ad97d71fb1 to your computer and use it in GitHub Desktop.
TranslateY Start Animation
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
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