Android resources such as images, colors, layouts and strings are organized into subdirectories under the res/ directory. These resources can then be accessed from code using the R class or from XML layout files using resource identifiers prefixed with @. Alternative resources can be provided for different device configurations by placing them in subdirectories named for the configuration, like drawable-hdpi for higher resolution image resources.