5.4.9. activity_main.xml Layout for Tablet Landscape Orientation
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
Get Android™ How to Program, Second Edition 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.