Link

Fragment Transactions

Fragment transaction methods are methods that add, remove, or replace fragments:

Transition TypeAPIs of FragmentTransaction Class
Add fragmentadd(Fragment, String)
add(int, Fragment)
add(int, Fragment, String)
attach(Fragment)
show(Fragment)
Replace fragmentreplace(int, Fragment)
replace(int, Fragment, String)
Remove fragmentremove(Fragment)
detach(Fragment)
hide(Fragment)