January 2014
Intermediate to advanced
736 pages
70h 43m
English
In Section 5.4.7, you defined MainActivity’s portrait-orientation layout, which contained only the QuizFragment. You’ll now define MainActivity’s landscape-orientation layout for tablets, which will contain both the SettingsFragment and the QuizFragment. To create the layout, perform the following steps:
1. Right click the project’s res folder, then select New > Folder. In the Folder name field enter layout-large-land and click Finish. The qualifiers large and land ensure that any layouts defined in this folder will be used only on large devices on which the app is running in landscape orientation.
2. Right click the layout-large-land folder, then select New > Android XML File
Read now
Unlock full access