Resource Reference Type
Description
Regardless of the type of resource, all Android resources are identified by their IDs in Java source code.
The syntax for ID in the XML file is called resource-reference syntax.
Syntax
This resource reference has the following formal structure:
@[package:]type/name
The type corresponds to one of the resource-type namespaces available in R.java.
Map between R.java and resource type
The following R
static fields
- R.drawable
- R.id
- R.layout
- R.string
- R.attr
- R.plural
- R.array
are corresponding the following types in XML resource-reference syntax.
- drawable
- id
- layout
- string
- attr
- plurals
- string-array