Reputation: 48252
I'm trying to understand why it has been decided to have both values
and xml
subfolders in the res
Android application folder.
While I can see the semantics differences between, say, drawables
and anim
and values
(for those hold objects of different natures) I fail to see difference between xml
and values
for xml data seem to be values.
(And, moreover, 'xml' seem to describe the form of data representation not the nature of data (most of the res data are in the form of xml))
Could someone give an insight?
Upvotes: 1
Views: 63
Reputation: 40193
values
should usually hold files that contain separate values not tied with each other, like strings
, dimens
or colors
. xml
should hold files that can be considered as a whole, like app_widget_provider
or search_provider
files. This is the only difference I can think of.
Upvotes: 1