Using Resources
1. Reference to resources in code
The
Resources class allows to access individual resources. An instance of Resources can get access via the getResources() method of the Context class.The
Resources class is also used by other Android classes, for example the following code shows