mkay
mkay

Reputation: 68

Eclipse does not find new subfolders in res\

I have the same problem discribed like here Is it possible to put layout xml's in subdirectories under /res/layout?

So i tried to make a subfolder in the res folder called layoutOptions. There i put some of my layout.xml files. Then i tried to type setContentView(R.layoutOtions.anyXmlFile); but the compiler doesnt accept any folder except the normal layout and the drawable folder.

How can i "tell" eclipse, that there are some new subfolders in the resfolder which i want to take?

Or is there any other way to put my layout xmls in different folders?

Thanks in advance.

Upvotes: 1

Views: 597

Answers (1)

Nikolay Elenkov
Nikolay Elenkov

Reputation: 52936

Same answer as in the linked question: you can't, it's not supported by the Android build tools. Best you can do is use a naming convention for your layouts, etc.

Upvotes: 4

Related Questions