Resource configuration qualifiers
Description
Most of the available configuration qualifiers are listed as follows. New qualifiers may be added with newer APIs.
- car, desk: Type of docking.
- en-rUS: Language and region.
- keysexposed, keyssoft, keyshidden: Kind of keyboard.
- ldpi, mdpi, hdpi, xhdpi, nodpi, tvdpi: Screen density.
- long, notlong: Screen type.
- mccAAA: AAA is the mobile country code.
- mncAAA: AAA is the carrier/network code.
- navexposed, navhidden: Navigation keys hidden or exposed.
- night, notnight: Night or day.
- nokeys, qwerty, 12key: Number of keys.
- nonav, dpad, trackball, wheel: Type of navigation device.
- notouch, stylus, finger: Kind of screen.
- port, land: Portrait or landscape.
- small, normal, large, xlarge: Screen size.
- sw<N>dp, w<N>dp, h<N>dp: Smallest width, available width, available height.
- v3, v4, v7: API level.
Example
With qualifiers, you can have resource directories shown in the following code.
\res\layout-mcc312-mnc222-en-rUS
\res\layout-ldpi
\res\layout-hdpi
\res\layout-car