Skip to content

Instantly share code, notes, and snippets.

@skydoves
Last active April 27, 2022 06:55
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 skydoves/91819fd59697b92876af6100f9233e28 to your computer and use it in GitHub Desktop.
Save skydoves/91819fd59697b92876af6100f9233e28 to your computer and use it in GitHub Desktop.
replace_fragment_example
supportFragmentManager.commit {
setReorderingAllowed(true)
// Replace whatever is in the fragment_container_view with this fragment
replace<MyFragment>(R.id.fragment_container_view)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment