Thursday, 3 November 2016

Android configuration qualifiers for alternative resources

I discovered today that there's loads more configuration qualifiers for providing alternative Android resources than I was aware of. Here's a handy table, taken from here.


Configuration
Example Qualifier Values
MCC and MNC
Examples:mcc310
mcc310-mnc004
mcc208-mnc00
etc.
Language and region
Examples:en
fr
en-rUS
fr-rFR
fr-rCA
etc.
Layout Direction
ldrtl
ldltr
smallestWidth
swdp

Examples:
sw320dp
sw600dp
sw720dp
etc.
Available width
wdp

Examples:
w720dp
w1024dp
etc.
Available height
hdp

Examples:
h720dp
h1024dp
etc.
Screen size
small
normal
large
xlarge
Screen aspect
long
notlong
Round screen
round
notround
Screen orientation
port
land
UI mode
car
desk
television
appliancewatch
Night mode
night
notnight
Screen pixel density (dpi)
ldpi
mdpi
hdpi
xhdpi
xxhdpi
xxxhdpi
nodpi
tvdpi
anydpi
Touchscreen type
notouch
finger
Keyboard availability
keysexposed
keyshidden
keyssoft
Primary text input method
nokeys
qwerty
12key
Navigation key availability
navexposed
navhidden
Primary non-touch navigation method
nonav
dpad
trackball
wheel
Platform Version (API level)
Examples:v3
v4
v7
etc.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!