Storage Location for Android Drawable Resources | Generated by AI

Home 2026.01

Question: In which folder should drawable resources like images be placed?
A) res/values
B) res/layout
C) res/drawable
D) res/menu

Answer:

The correct answer is C) res/drawable.

In an Android project, drawable resources such as images (PNG, JPEG, SVG), vector drawables, and other graphical assets that can be drawn on the screen should be placed in the res/drawable folder (or its density-specific variants like drawable-hdpi, drawable-mdpi, etc.).

Brief explanation of each option:

Placing images in the correct res/drawable folder ensures they can be properly referenced in code or XML (e.g., @drawable/my_image) and supports automatic density handling.


Back

x-ai/grok-4.1-fast

Donate