android - Add Subnode to resources constants -
i use resource system of android specify strings , other stuff constants. default way access resources using constants generated in r
r.string.hello_world
. okay basic usage. if include android-library in project can bring resources in pool of own resources. can great thing, can problem if define value same key twice , override existing value.
so questen is: possible add kind of parent node strings.xml file so:
<resources> <category name="myapp"> <string name="hello_world">hello world</string> </category> </resources>
so when access own resources have use r.string.myapp.hello_world
instead? or not possible without changing r generator?
Comments
Post a Comment