I recently discovered B4XView and its possibilities to share code between platforms.
Though this is a great improvement, I have 1 issue that I cannot solve with my knowledge of today.
For Android I declare and initialize my controls in the activity, for iOS I do this in my page. Then I pass these controls to the cross platform class that constructs the page. I do not like using the designer, so I add/position and setup my controls by code in the shared class. This also results in much faster display.
So far so good... But for some pages I use dozens and dozens of labels to construct a list. Is there no way I can do this in the class? Often these labels contain records from database so I cannot pass dozens or hundreds of controls to the class.
Is there a work around for this?
If not clear I make a sample app that will make it clear...
Though this is a great improvement, I have 1 issue that I cannot solve with my knowledge of today.
For Android I declare and initialize my controls in the activity, for iOS I do this in my page. Then I pass these controls to the cross platform class that constructs the page. I do not like using the designer, so I add/position and setup my controls by code in the shared class. This also results in much faster display.
So far so good... But for some pages I use dozens and dozens of labels to construct a list. Is there no way I can do this in the class? Often these labels contain records from database so I cannot pass dozens or hundreds of controls to the class.
Is there a work around for this?
If not clear I make a sample app that will make it clear...