Configuration Qualifiers
You have now seen and used several configuration qualifiers for providing alternative resources: language (e.g., values-es/), screen orientation (e.g., layout-land/), screen density (e.g., drawable-mdpi/), and screen size (e.g., layout-sw600dp).
The device configurations for which Android provides configuration qualifiers to target resources are:
-
mobile country code (MCC), optionally followed by mobile network code (MNC)
-
language code, optionally followed by region code
-
layout direction
-
smallest width
-
available width
-
available height
-
screen size
-
screen aspect
-
round screen (API level 23 and above)
-
screen orientation
-
UI mode
-
night mode
-
screen density (
dpi
) -
touchscreen type
-
keyboard ...
Get Android Programming: The Big Nerd Ranch Guide, Third 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.