Erel B4X founder Staff member Licensed User Longtime User Today at 7:50 AM #1 Using LayoutUtils + LayoutGenerator: Nothing fancy, but still exciting. Attachments sign_in.bal sign_in.bal 5.4 KB · Views: 2 sign_in.json sign_in.json 3.6 KB · Views: 4
Erel B4X founder Staff member Licensed User Longtime User Today at 8:09 AM #2 B4J Tutorial Thread '[B4X] Creating layouts with LayoutUtils and LayoutGenerator' Sunday at 3:27 PM LayoutUtils: https://www.b4x.com/android/forum/threads/172516/#content LayoutUtils can be used to create new layout files without using the designer. Use cases that I can think of: - Conversion of non-B4X layouts. - Automatic creation of layouts. Something like B4XPreferenceDialog but based on customized layouts. - Modification of existing layouts. A bit like: https://www.b4x.com/android/forum/threads/b4x-thememanager-themecreator.172525/#content - AI generated layouts. How does it work? Each view is made of various properties. As it is difficult and cumbersome to set...
B4J Tutorial Thread '[B4X] Creating layouts with LayoutUtils and LayoutGenerator' Sunday at 3:27 PM LayoutUtils: https://www.b4x.com/android/forum/threads/172516/#content LayoutUtils can be used to create new layout files without using the designer. Use cases that I can think of: - Conversion of non-B4X layouts. - Automatic creation of layouts. Something like B4XPreferenceDialog but based on customized layouts. - Modification of existing layouts. A bit like: https://www.b4x.com/android/forum/threads/b4x-thememanager-themecreator.172525/#content - AI generated layouts. How does it work? Each view is made of various properties. As it is difficult and cumbersome to set...
Olaan Expert Licensed User Longtime User 40 minutes ago #3 Erel said: Using LayoutUtils + LayoutGenerator: View attachment 174936 Nothing fancy, but still exciting. Click to expand... What is your Prompt to use? Which are attached file?
Erel said: Using LayoutUtils + LayoutGenerator: View attachment 174936 Nothing fancy, but still exciting. Click to expand... What is your Prompt to use? Which are attached file?
Erel B4X founder Staff member Licensed User Longtime User 29 minutes ago #4 1. Download and unzip LayoutGenerator: https://www.b4x.com/android/forum/t...-with-layoututils-and-layoutgenerator.172576/ 2. Run from command line: java -jar LayoutGenerator.jar describe template.bal > instructions.txt 3. Upload instructions.txt and ask the AI to generate a json template for "sign in screen". 4. Convert the json template to layout with: java -jar LayoutGenerator.jar process <json file> <new output file.bal>
1. Download and unzip LayoutGenerator: https://www.b4x.com/android/forum/t...-with-layoututils-and-layoutgenerator.172576/ 2. Run from command line: java -jar LayoutGenerator.jar describe template.bal > instructions.txt 3. Upload instructions.txt and ask the AI to generate a json template for "sign in screen". 4. Convert the json template to layout with: java -jar LayoutGenerator.jar process <json file> <new output file.bal>