tezvyn:

What is the res directory and how do you use orientation qualifiers?

Source: developer.android.combeginner

WHAT IT TESTS: Android's declarative resource system and runtime configuration adaptation. ANSWER OUTLINE: res/ holds non-code assets; create layout-port/ and layout-land/ with identical XML filenames for automatic framework selection.

WHAT IT TESTS: Whether you understand Android's resource delegation model, where the framework selects non-code assets based on device configuration at runtime. ANSWER OUTLINE: First, define res/ as the directory for non-code resources like layouts and strings that the system serves automatically. Second, explain that orientation qualifiers let you create layout-port/ and layout-land/ under res/; place XML files with identical names in each so the framework loads the correct version on rotation.

Read the original → developer.android.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

What is the res directory and how do you use orientation qualifiers? · Tezvyn