Time for action - coding the scientific layout

The landscape layout is broken into various sub-layouts in order to maintain IDs for the two individual functional areas: Scientific functions and standard functions. Maintaining these with their own ID values allows much easier detection of the available functionality from the Java code. Instead of the Java code deciding on the available functionality based on the configuration, it can use findViewById and test for null to check if the scientific functionality is available. This is not unlike "capability testing" in JavaScript (as apposed to inspection).

  1. Create a new resource directory named res/layout-land.
  2. Create a new layout resource XML file in the layout-land directory named main.xml and open ...

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.