What is the `res/` directory and how do you use resource qualifiers?

This tests your grasp of Android's resource system. Explain that `res/` separates assets from code and that qualifiers (e.g., `layout-land`) let the OS pick the right layout. A red flag is checking orientation manually in code instead of using this system.
This tests your understanding of Android's resource management, which decouples static assets from application logic. A strong answer first defines `res/` as the home for non-code assets (layouts, strings, drawables). Then, explain how configuration qualifiers, like creating a `layout-land/` directory, allow the system to automatically select the correct resource at runtime based on device state. A common red flag is programmatically checking orientation in code, which bypasses this powerful and efficient framework feature.
Read the original → developer.android.com
- #android
- #resources
- #ui
- #layout
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.