Chapter 2. Showing Views and Handling Fragments

In this chapter, we will cover the following recipes:

  • Using custom views with layouts
  • Creating and using fragments
  • Preserving view and fragment state
  • Navigating between fragments
  • Fragments and the action bar
  • Animating fragment navigation
  • Animating view and object properties
  • Animating views on the UI
  • Adding a navigation drawer with fragments
  • Applying local styles and global themes

Introduction

All apps have one thing in common: they all have some sort of user interface. Whether it is a rich set of controls or just a simple notification that something happened, all apps present the user with a means to consume information or provide data.

Users desire an interface that is easy to use and beautiful to look at. Often, ...

Get Xamarin Mobile Development for Android Cookbook 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.