Monday, August 25, 2014

Creating Resources for Different Languages and Hardware

Creating Resources for Different Languages and Hardware

You can specify alternative resource values using a parallel directory structure within the res folder.
Android will choose from among these values dynamically at run time.
A hyphen (-) is used to separate qualifiers that specify the conditions you’re providing alternatives for.

Project/
       res/
          values/
               strings.xml
         values-fr/
              strings.xml
         values-fr-rCA/
              strings.xml

Qualifiers:

Mobile Country Code and Mobile Network Code (MCC/MNC):

  • The MCC is specified by mcc followed by the three-digit country code

Language and Region:

Screen Size:

Screen Width/Length:

Screen Orientation:

Screen Pixel Density:

Touchscreen Type:

Keyboard Availability:

Keyboard Input Type:

UI Navigation Type:

No comments:

Post a Comment