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 ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.