Configuration qualifiers

We have already seen configuration qualifiers such as layout-large or layout-xhdpi in The Android Studio guided tour section from Chapter 3, Exploring Android Studio. Here, we will refresh and expand our understanding of them.

We can begin to remove the reliance on the controller layer to influence the app layout by using configuration qualifiers. There are configuration qualifiers for size, orientation, and pixel density. To take advantage of a configuration qualifier, we simply design a layout in the usual way that is optimized for our preferred configuration and then place that layout in a folder with a name that Android recognizes as being of that particular configuration.

So, if we want to have a different layout for ...

Get Android Programming for Beginners 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.