15. Managing Alternative and Localized Resources

The Android platform supports a very flexible resource system. By storing project resources, such as strings and graphics, in a certain, structured way, developers can have their applications load different resources under different conditions. For example, you may have noticed that the screens of the Have You Read That? application don’t always look right if you hold your Kindle Fire in landscape mode. In this chapter, we discuss how to use alternative resources to support different screen modes, like portrait versus landscape, as well as how to manage resources for internationalization purposes.

Using the Alternative Resource Hierarchy

Few application user interfaces look perfect on every device ...

Get Learning Android™ Application Programming for the Kindle Fire™: A Hands-On Guide to Building Your First Android Application 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.