Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created Mar 22, 2020
Embed
What would you like to do?
bottomSheetSwitch.setOnCheckedChangeListener { _, bottomSheetSmall ->
if (bottomSheetSmall)
motionLayout.loadLayoutDescription(R.xml.expandable_bottom_sheet_small)
else
motionLayout.loadLayoutDescription(R.xml.expandable_bottom_sheet_big)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment