Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you add subfolder to layout in Eclipse Android project?

When I create a subfolder in the layout folder, and drag an xml file to it, the generated R file doesn't seem to show the subfolder. a) is there a way to change that b) is the file and file structure still picked up by SVN and c) so, if I do it that way, can I still just refer to the object using layout?

like image 213
johnrubythecat Avatar asked Mar 30 '10 17:03

johnrubythecat


People also ask

Can the Android layout folder contain subfolders?

You can organize your resources XML files (layout, drawable,..) into separate subfolders corresponding to the app's features.


1 Answers

When I create a subfolder in the layout folder, and drag an xml file to it, the generated R file doesn't seem to show the subfolder

That is because that is not supported by Android. You cannot have subfolders of resources.

PHP_Jedi's advice, though, is good (e.g., svn:ignore).

like image 94
CommonsWare Avatar answered Sep 28 '22 01:09

CommonsWare