Created
September 11, 2018 13:36
-
-
Save armcha/d6f60f6a2cffc1cfbfac9828bb658a9b to your computer and use it in GitHub Desktop.
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
videoMotionLayout.addTransitionListener(object : MotionLayout.TransitionListener { | |
override fun onTransitionChange(motionLayout: MotionLayout?, startId: Int, endId: Int, progress: Float) { | |
val mainActivity = activity as MainActivity | |
mainActivity.mainMotionLayout.progress = Math.abs(progress) | |
} | |
override fun onTransitionCompleted(motionLayout: MotionLayout?, currentId: Int) { | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment