Skip to Content
Android Application Development Cookbook - Second Edition
book

Android Application Development Cookbook - Second Edition

by Rick Boyer, Kyle Mew
March 2016
Intermediate to advanced
428 pages
9h 2m
English
Packt Publishing
Content preview from Android Application Development Cookbook - Second Edition

Chapter 5. Exploring Fragments, AppWidgets, and the System UI

In this chapter, we will cover the following topics:

  • Creating and using a Fragment
  • Adding and removing Fragments during runtime
  • Passing data between Fragments
  • Creating a shortcut on the Home screen
  • Creating a Home screen widget
  • Adding Search to the Action Bar
  • Showing your app full screen

Introduction

With a firm understanding of layouts from Chapter 2, Layouts, we'll dig deeper into UI development with Fragments. Fragments are a way to separate your UI into smaller sections that can easily be reused. Think of Fragments as mini-activities, complete with their own classes, layouts, and lifecycle. Instead of designing your screen in one Activity Layout, possibly duplicating functionality across ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android 9 Development Cookbook - Third Edition

Android 9 Development Cookbook - Third Edition

Rick Boyer

Publisher Resources

ISBN: 9781785886195Supplemental Content