Summary
In this chapter, we covered a lot of ground on creating and managing fragments, including the following topics:
- The
Fragment
class and what it does, and creating and managing fragments - How to use a declarative approach for adding fragments to activities using the
<fragment>
tag - Using
ListFragment
withListAdapter
to populate the data - How to add alternative layout resources from Xamarin Studio layout designer
- How to reuse the fragments to create a multi-pane split view layout for Android tablets
- How to create a dialog using
DialogFragment
, and create its view hierarchy using theOnCreateDialog()
method - Optimizing the
POIApp
layout to support large-screen Android tablets - Dealing with configuration changes to save and retain the fragment state
The ...
Get Xamarin Mobile Application Development for Android - Second Edition 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.