Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// declarative style
supportFragmentManager.commit {
if (...) { // animation based on conditions, more flexible
setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)
replace(, SettingsFragment()) // any op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment