Wish res folder files and drawables

bloxa69

Active Member
Licensed User
Longtime User
I more and more often work with custom xml layouts, drawables and xml drawables that must be placed into Object/res/ folder. They must be read only. To edit them, you have to make them writable, edit, then make read only, make a backup, then compile the app. Sometimes I have to do 50-100 runs to achieve what I want. This exercise is mind boggling by itself, but then I forget to write protect something and make a backup before running and it's gone, not even in the Recycle Bin.

Here are my wishes:
1. (Small one) - when the file gets deleted this way, it has to be moved to Recycling Bin, not deleted without trace as it the case now.
2. (Bigger wish) - create a mechanism that will make sure the files in Object folder don't get deleted and so there is no need to write protect them.
3. (Even bigger wish) - change B4A file structure so it reflects Eclipse folder structure - drawables folders, layout folders and so on. Meaning, separate Files folder must be gone.
 

bloxa69

Active Member
Licensed User
Longtime User
This is great, will save me a lot of time and mouse clicking:

B4X:
#CustomBuildAction: 1, c:\windows\system32\attrib.exe, +r res\*.* /s

only too bad, it changes all of them to 'read only'. So, half the clicks still left - when you need to edit those files, you'll have to uncheck that read only mark. I guess it's possible to make a button that will run that command line and make them writable again in case you need to edit the files, and put that button in the res folder. For now.
That calls for another wish - a button on the main window, something like "make them writable again" but shorter. "EDIT RES"?
And that calls for another wish - custom buttons on the main window, with custom actions assignable to them.
 
Top