I'm working on a Android application that involves a lot of XML layout files. Since the Android tools don't allow subdirectories in the layout directory, I am trying to organize my project using Eclipse's virtual folders (I'm using Eclipse 3.7). Essentially, I'm trying to get functionality similar to Xcode's "groups".
I'm able to create virtual folders, but when I try to add files to them I am given the message "Only virtual folders and links can be created under a virtual folder." I'm not really sure what this means. Is there a way to achieve what I'm trying to do? Thanks!
No. You can't do that because the layout XML files are required to exist in a real folder on disk, and the virtual folders are basically search index listings.
Unfortunately you won't be able to do what you want: virtual folders can not be used to store Android XML files, and the aapt
tool that Eclipse invokes to convert Android XML files expects a specific folder structure which you can't deviate from.