Chapter 4. Working with Fragment Transactions
This chapter covers dynamically managing fragments within an activity, implementing back button behavior, and monitoring user interaction with the back button.
Let's have a look at the topics covered:
- Understanding
FragmentTransactions
- Dynamically adding and removing fragments
- Managing fragment UI separate from activity relationship
- Adding back button support to
FragmentTransactions
By the end of this chapter, we will be able to create interactive UIs that use fragments to dynamically change the appearance of the screen in response to user actions.
Intentional screen management
Until now, we've considered each activity to always correspond to a single screen in our application. We've used fragments only to ...
Get Creating Dynamic UI with Android Fragments now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.