|
can be compiled into XML files of many types of resources.
Note : Unlike other res/folders, it can hold any number of files that hold the description of the resource to be created, not the resource itself. The XML element type controls where these resources should be placed in the R class.
Although the files in this folder can be arbitrarily named, the following are some of the more typical files (the Convention for file naming is to include element types in the name):
Array.xml Define an array
colors.xml A string value that defines the color drawable and colors (color string values). Use Resource.getdrawable () and Resources.getcolor () to obtain these resources separately.
dimens.xml defines the dimension value (dimension value). Use Resources.getdimension () to obtain these resources.
strings.xml defines a string (string) value. Use Resources.getstring () or Resources.gettext () to obtain these resources. GetText () retains a rich text style applied on the UI string.
styles.xml Define style object. |