O'Reilly logo

Creating Android Applications: Develop and Design by Chris Haseman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With the release of Honeycomb and Ice Cream Sandwich, Google has introduced a totally new form factor to the Android landscape. In Gingerbread and earlier, Google had sought to handle only small handset screens. With these new versions of Android, you now must deal with the much larger screens of tablets.

Google has introduced the concept of the fragment (to handle the extra screen real estate and to maintain compatibility with smaller, phone-sized screens) and the action bar (to replace the options menu).

Fragments

Fragments, conceptually, are like activities with a slightly more complex lifecycle. They can be given a screen to themselves if there isn’t much room, or they can be placed with many ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required