For those new to making Libraries in Eclipse for B4A. This Giant thing is the Source for Version 1.6 of my Line Layout library. It shows a lot of the integration and interaction between Java/Android and B4A to give you an idea on how to do Events, extend functionality, etc. It does some interesting things too...the biggest probably being how AddView figures out the layout of a control/view before it is rendered so the library can do its thing and keep track of positions. (Thousands of posts in various forums trying to do this very thing...I pieced it all together and added some of my own to it to make it happen.
I share to help others understand the inner workings and possibly give ideas to enhance B4A even further. If you have suggestions, ideas for improvement/optimization, bugs/errors, etc just drop me a note here. Its is kind of to the point where it just needs extended- Once I use them more I plan on adding Checkboxes, Radio Buttons, Toggle Buttons, etc to it as other Add methods. For as little as I use them though just adding them with the AddView method for now is better and keeps the library small. Some controls won't gain much to justify their own Add method too.
In college we used to make massive .h files for C++ that did everything we'd ever need to setup any C++ app. We called them KitchenSink.h as a play on words for having "Everything but the Kitchen Sink". Adding much more would kind of make this become that when the original intent was to just give an easy way to make a Form that can be loaded from a Database with "Tab Order", State Management, and fix shortcomings in some views. But, if you have anything cool or get brave and make methods for the missing controls or other functionality pass them along.
I share to help others understand the inner workings and possibly give ideas to enhance B4A even further. If you have suggestions, ideas for improvement/optimization, bugs/errors, etc just drop me a note here. Its is kind of to the point where it just needs extended- Once I use them more I plan on adding Checkboxes, Radio Buttons, Toggle Buttons, etc to it as other Add methods. For as little as I use them though just adding them with the AddView method for now is better and keeps the library small. Some controls won't gain much to justify their own Add method too.
In college we used to make massive .h files for C++ that did everything we'd ever need to setup any C++ app. We called them KitchenSink.h as a play on words for having "Everything but the Kitchen Sink". Adding much more would kind of make this become that when the original intent was to just give an easy way to make a Form that can be loaded from a Database with "Tab Order", State Management, and fix shortcomings in some views. But, if you have anything cool or get brave and make methods for the missing controls or other functionality pass them along.
Attachments
Last edited: