Skip to content

Instantly share code, notes, and snippets.

@TayfunCesur
Created June 22, 2019 18:52
Show Gist options
  • Save TayfunCesur/cd5f7547d33fc0f4338482d4ea6ba197 to your computer and use it in GitHub Desktop.
Save TayfunCesur/cd5f7547d33fc0f4338482d4ea6ba197 to your computer and use it in GitHub Desktop.
bottomSheetBehavior.setBottomSheetCallback(object : BottomSheetBehavior.BottomSheetCallback() {
override fun onSlide(p0: View, p1: Float) {
val ra = radius - (radius * p1)
(p0 as CurvedLayout).setCorner(ra)
}
override fun onStateChanged(p0: View, p1: Int) {
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment