Chapter 10. Tablets, Fragments, and Action Bars, Oh My

So we’ve made it this far, and we’ve barely talked about fragments at all. Well, there’s reason behind this madness, I assure you. Fragments were added to the framework at a time when the Android platform was evolving to accommodate larger screens and needed a strategy for allowing developers to design one application to work across a myriad of devices.

Around the same time, the action bar was added to the framework. The action bar is a window feature that aims to provide a consistent navigation and action pattern for Android applications. Much like the menu bar across the top of all screens in OS X and the menu functionality tied to the top of each application window in Windows, the action ...

Get Beginning Android Programming: Develop and Design 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.