O'Reilly logo

Android Studio 2 Essentials - Second Edition by Belén Cruz Zapata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Supporting multiple screens

When creating Android applications, we have to take into account the existence of multiple screen sizes and screen resolutions. It is important to check how our layouts are displayed in different screen configurations. To accomplish this, Android Studio provides a functionality to change the virtual device that renders the layout preview when we are in the Design mode.

We can find this functionality in the toolbar and click on it to open the list of available device definitions, as shown in the following screenshot:

Supporting multiple screens

Try some of them. The difference between a tablet device and a device like those from the Nexus line is very ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required