Skip to main content

Fragments Fundamentals

  • Chapter
  • First Online:
Android Fragments
  • 1331 Accesses

Abstract

For the first two major releases of Android, small screens were it. Then came the Android tablets: devices with screen sizes of 10”. And that complicated things. Why? Because now there was so much screen real estate that a simple activity had a hard time filling a screen while at the same time keeping to a single function. It no longer made sense to have an e-mail application that showed only headers in one activity (filling a large screen), and a separate activity to show an individual e-mail (also filling a large screen). With that much room to work with, an application could show a list of e-mail headers down the left side of the screen and the selected e-mail contents on the right side of the screen. Could it be done in a single activity with a single layout? Well, yes, but you couldn’t reuse that activity or layout for any of the smaller-screen devices.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Dave MacLean

About this chapter

Cite this chapter

MacLean, D., Komatineni, S. (2014). Fragments Fundamentals. In: Android Fragments. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0853-3_1

Download citation

Publish with us

Policies and ethics