1

Is it possible to have nested value resources? I want to categorise my strings based on the Activity in which they are being displayed. So say I would like somthing of this sort:

 value
  > login
   .. strings.xml
  >registration
   .. strings.xml

Is this possible? If yes, how do I access these resources from the layout files?

Arnab Chakraborty
  • 7,442
  • 9
  • 46
  • 69
  • Already asked before, see this http://stackoverflow.com/questions/4930398/can-the-android-layout-folder-contain-subfolders/4930521#4930521 – pandre Aug 11 '11 at 11:54
  • I had gone through that post, I was just wondering if it would be different in the case of `values` – Arnab Chakraborty Aug 11 '11 at 11:57
  • 1
    Same story for other resources folders: http://stackoverflow.com/questions/1077357/can-the-android-drawable-directory-contain-subdirectories/1078988#1078988 -> "No, the resources mechanism doesn't support subfolders in the drawable directory, so yes - you need to keep that hierarchy flat." – pandre Aug 11 '11 at 12:00
  • 1
    What about a "great comment" for me? ;) – pandre Aug 11 '11 at 13:37

1 Answers1

1

No. Best you can do is a naming convention.

Nikolay Elenkov
  • 52,576
  • 10
  • 84
  • 84