Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Activity fragments > Fragment transactions

20.5. Fragment transactions

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():


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint