Wish: better way to use Android resource files

corwin42

Expert
Licensed User
Longtime User
Erel showed an absolutely great way how to use Android resource files in a B4A application in his nine patch images tutorial.

Unfortunately it is very unhandy to work with resource files in the B4A objects/res folder because normally B4a will delete all files in this file structure on compile. The solution is to mark the files as read only but then you have problems to make any changes to them.

My wish for future B4A versions is something like a resource editor like the Manifest editor. In a simple edittext window you can add lines like

RegisterResource("drawable", "my_icon.png")
RegisterResource("values", "strings.xml")

In the result B4A will leave all registered resource files alone and don't delete them.
 

joseluis

Active Member
Licensed User
Longtime User
Seconded.

I think it would be handier if it's like the File manager tab, but with standard subfolders.
 
Top