Created
September 25, 2019 18:33
-
-
Save PiotrPrus/c6edccd9c74b4f742e653e6803b5bcfe to your computer and use it in GitHub Desktop.
A gist that shows how transitionListener looks like
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
binding.motionLayoutRoot.setTransitionListener(object : MotionLayout.TransitionListener { | |
override fun onTransitionTrigger(p0: MotionLayout?, startId: Int, endId: Boolean, p3: Float) {} | |
override fun allowsTransition(p0: MotionScene.Transition?): Boolean {} | |
override fun onTransitionStarted(p0: MotionLayout?, startId: Int, endId: Int) {} | |
override fun onTransitionChange(p0: MotionLayout?, startId: Int, endId: Int, progress: Float) {} | |
override fun onTransitionCompleted(p0: MotionLayout?, endId: Int) {} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment