Class From Layout
Class from layout is a tool to provide a basic class from a layout file to save time creating the boiler plate yourself. It was in development before Erel released the new Layout to Json utility. Using that makes it more stable as it was originally based on Designer scripts. You need to follow the instructions in the link to setup the Layout to Json utility.
It is not intended to create 100% working classes, but basic boilerplate with view definitions and simple methods and events. It can also provide a Map interface and constants for updating and obtaining the current state of the data in the class.
It is written for the way I work, so may not be suitable for all. If you have any suggestions for improvements, please let me know.
It provides templates for:
Class From Layout makes no changes to the Json or project files.
Supports B4J and B4A.
This is my first attempt with a new Github template, so apologies in advance if something goes wrong.
The help files are quite comprehensive, so I suggest taking a little time to browse them.
All of the dialog templates used in the app were created with ClassFromLayout.
It should be considered a beta version. I would be grateful for any feedback.
Let me know how you get on with it.
Depends on:
The zip file attached is the source code minus the help files (site.zip) which you can download from the Github page here Just copy it as is into the Files folder of the project. Or you can download the full zip including the help files from the Github page Files folder.
Help files can also be found online https://stevel05.github.io/ClassFromLayout/. I will remove them from the app in the next release and link to these.
Class from layout is a tool to provide a basic class from a layout file to save time creating the boiler plate yourself. It was in development before Erel released the new Layout to Json utility. Using that makes it more stable as it was originally based on Designer scripts. You need to follow the instructions in the link to setup the Layout to Json utility.
It is not intended to create 100% working classes, but basic boilerplate with view definitions and simple methods and events. It can also provide a Map interface and constants for updating and obtaining the current state of the data in the class.
It is written for the way I work, so may not be suitable for all. If you have any suggestions for improvements, please let me know.
It provides templates for:
- B4xPage
- Class with Layout
- CustomView
- Dialog Template
- B4A Main (Activity)
- B4J Main
Class From Layout makes no changes to the Json or project files.
Supports B4J and B4A.
This is my first attempt with a new Github template, so apologies in advance if something goes wrong.
The help files are quite comprehensive, so I suggest taking a little time to browse them.
All of the dialog templates used in the app were created with ClassFromLayout.
It should be considered a beta version. I would be grateful for any feedback.
Let me know how you get on with it.
Depends on:
The zip file attached is the source code minus the help files (site.zip) which you can download from the Github page here Just copy it as is into the Files folder of the project. Or you can download the full zip including the help files from the Github page Files folder.
Help files can also be found online https://stevel05.github.io/ClassFromLayout/. I will remove them from the app in the next release and link to these.
Attachments
Last edited: