O'Reilly logo

Android User Interface Development by Jason Morris

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

Scientific landscape layout

The scientific layout for the calculator is not simply a case of more buttons, because we want this layout to be used when the device is in a landscape orientation. This means we have significantly less vertical space, something the standard layout consumes lots of. To build this new user interface, we'll not just be defining a new layout resource, but also additional styling for the new layout.

The scientific layout also makes use of more complex text on its new buttons. Some mathematic functions such as square root, or inverse cosine have a specific notation that should be used. In these cases, we'll need to make use of either HTML styling or special characters. Fortunately, Android fully supports the UTF-8 character ...

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