Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The fragment transaction API allows for a set of related fragment operations to be performed together as a transaction. Fragment transactions are supported by the FragmentTransaction class, which provides methods that add, hide, replace, and remove fragments; set animation transitions and titles; show fragments; add to the back stack; and commit the transaction.
Before attempting any fragment operation, you must get a FragmentTransaction object from the fragment manager by calling FragmentManager.beginTransaction():