Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
Testing Alternative Resources
It is important to test your app on different device configurations to see how your layouts and other resources look on those configurations. You can test on both real and virtual devices. You can also use the layout editor.
The layout editor has many options for previewing how a layout will appear in different configurations. You can preview the layout on different screen sizes, device types, API levels, languages, and more.
To see these options, open res/layout/fragment_crime_detail.xml in the layout editor. Then try some of the settings in the toolbar shown in Figure 18.9.
Figure 18.9 Using the layout editor to preview various device configurations
The layout editor lets you try ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access