1

I tried to organized my layout.xml files, and made a directory

/res/layout/content/

Then I tried to point to a file there from the code like this:

setContentView(R.layout.content.product_strategy);

but I get an error that the content is not a field that can be resolved.

What am doing wrong?

Thanks!

cytinus
  • 5,467
  • 8
  • 36
  • 47
Genadinik
  • 18,153
  • 63
  • 185
  • 284
  • 2
    Plz refer to this one: [Can the Android Layout folder contain subfolders?](http://stackoverflow.com/questions/4930398/can-the-android-layout-folder-contain-subfolders) – zionpi Apr 26 '12 at 03:30

2 Answers2

2

You can't make your own resource folder in android. Please take a look at this link provding information about resource folders:

http://developer.android.com/guide/topics/resources/providing-resources.html

Awais Tariq
  • 7,724
  • 5
  • 31
  • 54
2

R.java doesn't create references to subdirectories in resources. That's the reason. So you need to use the single level default directory structure.

nithinreddy
  • 6,167
  • 4
  • 38
  • 44