Configuration Qualifiers
You have now seen and used several configuration qualifiers for providing alternative resources: language (such as values-es), screen orientation (layout-land), and screen density (drawable-mdpi).
The device configurations that Android provides configuration qualifiers to target resources for 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)
-
wide color gamut
-
high dynamic range
-
screen orientation
-
UI mode
-
night mode
-
screen density (dpi)
-
touchscreen type
-
keyboard availability ...
Get Android Programming: The Big Nerd Ranch Guide, 4th 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.