Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class ExampleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_example)
motionLayout.setTransitionListener(MotionProgressListener { progress: Float ->
arrow.isVisible = (progress <= 0.5f)
editText.isVisible = (progress >= 0.5f)
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment