Qualifiers precedence order

Description

Consider the directories as follows.


\res\layout\main_layout.xml
\res\layout-port\main_layout.xml
\res\layout-en\main_layout.xml

The layout file main_layout.xml is available in two additional variations: for the language or for the layout mode.

Even in portrait mode, Android picks the layout from the layout-en directory, because the language variation comes before the orientation variation.

Please note that string resources are based on individual IDs, whereas layout resources are file-based.





















Home »
  Android »
    Android Basics »




Hello Android
Resources
Activity
Calendar
Camera
Contact
Content Provider
Database
Hardware
Intent
Location
Media
Network
Notification
Preference
Sensor
Service
SMS