Summary
This chapter discussed asynchronous dialogs and how to use dialog fragments, including the following topics:
- What a dialog is and why you use one
- The asynchronous nature of a dialog in Android
- The three steps of getting a dialog to display on the screen
- Creating a fragment
- Two methods for how a dialog fragment can create a view hierarchy
- How a fragment transaction is involved in displaying a dialog fragment, and how to get one
- What happens when the user presses the Back button while viewing a dialog fragment
- The back stack, and managing dialog fragments
- What happens when a button on a dialog fragment is clicked, and how you deal with it
- A clean way to communicate back to the calling activity from a dialog fragment
- How one dialog fragment ...
Get Pro Android 4 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.