Using Resources
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 how to create a Bitmap file from a reference ID.BitmapFactory.decodeResource(getResources(), R.drawable.ic_action_search);
No comments:
Post a Comment