9.12 AddEditFragment
Class
The AddEditFragment
class provides a GUI for adding new contacts or editing existing ones. Many of the programming concepts used in this class have been presented earlier in this chapter or in prior chapters, so we focus here only on the new features.
9.12.1 Superclass and Implemented Interface
Figure 9.40 lists the package
statement, import
statements and the beginning of the AddEditFragment
class definition. The class extends Fragment
and implements the LoaderManager.LoaderCallbacks<Cursor>
interface to respond to LoaderManager
events.
Get Android How to Program, 3/e 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.