Skip to content

Instantly share code, notes, and snippets.

@huan-nguyen
Created July 3, 2017 11:07
Show Gist options
  • Save huan-nguyen/9f67f4d997cf7d74859f8ec4520edba6 to your computer and use it in GitHub Desktop.
Save huan-nguyen/9f67f4d997cf7d74859f8ec4520edba6 to your computer and use it in GitHub Desktop.
firstXAnim.addUpdateListener { _, value, _ ->
secondXAnim.animateToFinalPosition(value)
}
firstYAnim.addUpdateListener { _, value, _ ->
secondYAnim.animateToFinalPosition(value + viewYDistance)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment