When I started developping android applications, I had a tendency to define custom R values wherever I need, in particular in layout files. For instance:
Custom. The system-provided IDs come with a risk of referring, in code, to a resource that is not present in the project. Customs IDs exist iff there's a corresponding resource - a drawable, a view, a layout or what have you.