Following on from Erel and @Filippo 's work, I have spent a little time and added some functionality to the code. I have tried it with some very old and complex B4a layouts and it seems to work, but I'm sure there will be some issues along the way.
If it doesn't work first time, try saving the B4a layout with a newer version.
If the layout contains custom views, don't forget to create the custom view class module. It can be empty until you are ready to rewrite it, but it needs to be there for the layout to display.
There is still some logging in the code, which I will leave for now.
Let me know if it works for you.
Hope it helps.
Update 0.2 added a missing Drawable variant.
Note: this utility is now redundant as you can copy and paste layouts between IDE's on different platforms which is much easier.
0.2 : 54
If it doesn't work first time, try saving the B4a layout with a newer version.
If the layout contains custom views, don't forget to create the custom view class module. It can be empty until you are ready to rewrite it, but it needs to be there for the layout to display.
There is still some logging in the code, which I will leave for now.
Let me know if it works for you.
Hope it helps.
Update 0.2 added a missing Drawable variant.
Note: this utility is now redundant as you can copy and paste layouts between IDE's on different platforms which is much easier.
0.2 : 54
Attachments
Last edited: