Book Image

Xamarin Mobile Application Development for Android, Second Edition

Book Image

Xamarin Mobile Application Development for Android, Second Edition

Overview of this book

Table of Contents (18 chapters)
Xamarin Mobile Application Development for Android Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 with ListAdapter 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 the OnCreateDialog() method

  • Optimizing the POIApp layout to support large-screen Android tablets

  • Dealing 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: