Created
June 22, 2019 18:52
-
-
Save TayfunCesur/cd5f7547d33fc0f4338482d4ea6ba197 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
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