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 fragmentsHow to use a declarative approach for adding fragments to activities using the
<fragment>
tagUsing
ListFragment
withListAdapter
to populate the dataHow 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()
methodOptimizing the
POIApp
layout to support large-screen Android tabletsDealing with configuration changes to save and retain the fragment state
The next chapter will guide you to deal with data persistence using SQLite in Android.
Let's take a look at the following references: