On Wed, Jul 29, 2009 at 10:35 AM, BORO<[email protected]> wrote: > > Hi. I would like to create a folder (s) under raw or/and drawable > folders. > Is it even possible and why not? According to the documentation it > seams that folder names are limited to a specific set of names which > have to do with phone settings and/or internationalisation, like: > http://developer.android.com/guide/topics/resources/resources-i18n.html#CreatingResources
No. It is not possible. The restrictions are part of the APK specification at this point, this may change in the future. > I would like to be able to create sub folders in raw and drawable > resource locations, as it allows for better management of large amount > of images/files, and/or easier transforming of Java desktop > applications to Android applications, and back. You could write an ANT target that pulls all the resources from some nested directory structure and flatten them into the raw/drawable folder at compile-time. You could work-around namespaces by prefixing the destination file names with the directory path they used to reside in, e.g. imgs/menu/item/file.png becomes... drawable/imgs_menu_item_file.png Hope this helps, Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

