Chapter 19

Handling Rotation

Some Android handsets, like the T-Mobile G1, offer a slide-out keyboard that triggers rotating the screen from portrait to landscape orientation. Other handsets might use accelerometers to determine screen rotation, as the iPhone does. As a result, it is reasonable to assume that switching from portrait to landscape orientation and back again may be something your users will want to do.

As you'll learn in this chapter, Android has a number of ways for you to handle screen rotation, so your application can properly handle either orientation. But realize that these facilities just help you detect and manage the rotation process. You are still required to make sure you have layouts that look decent in each orientation. ...

Get Beginning Android 2 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.