Creating custom controls/libs in B4A

thedesolatesoul

Expert
Licensed User
Longtime User
This may be related to classes but not completely.

A lot of new views can be created using the scrollview etc, and it would be useful if we could roll them into a library. This would make the code a lot cleaner and hide most functionality.
Examples of this are the SpinWheel, ExpandableListView etc.

When I get the time, I will try this method:
- Compile a barebones B4A project with the view
- Get the main.java class files and copy into an eclipse project
- Try to remove references to B4A activity and try to modify the class to become a view with required functionality
 

thedesolatesoul

Expert
Licensed User
Longtime User
When I get the time, I will try this method:
- Compile a barebones B4A project with the view
- Get the main.java class files and copy into an eclipse project
- Try to remove references to B4A activity and try to modify the class to become a view with required functionality
This was way too complicated. Maybe in the future there will be a simplification that would allow views to be created in libs or modules.
 

thedesolatesoul

Expert
Licensed User
Longtime User
Indeed. That is my current solution. :)
Thanks for the great work Erel. I like the way B4A is built, it allows people to look under the hood and learn more.
There are about 860 threads in the Bugs and Wishlist forum, I dont expect one person to fulfil everyones wishes, but you have done well. :sign0188::sign0188::sign0188:
 
Top