Why when I add a new .xml resource to the res folder of my project, doesn’t a new source be registered in class R? For example, if in res I add table.xml

<resources> <string name="tab1">column 1</string> </resources> 

Then i can't access via

 R.table.tab1 

even after synchronization

    2 answers 2

    after the first point is the type of resource. You have declared your resource as

    <string name="tab1">column 1</string> (string). To access it, refer to it as a String Resource: R.string.tab1

      As far as I know there is no possibility to add custom types of resources. In your case, you will have to use the string folder