Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created March 22, 2020 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmaxxdd/bd719089871440338bf4c8f106186771 to your computer and use it in GitHub Desktop.
Save tmaxxdd/bd719089871440338bf4c8f106186771 to your computer and use it in GitHub Desktop.
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