I am starting on a B4A - B4i cross platform project and I want to use XUI for this.
I have a few questions, though.
It is recommended in the video tutorials to move most of the code from the activity to a shared class module. But for multiple activities, should I use a new class module for each activity or use the same class module for all?
Is there a best-practice for naming the corresponding class modules? For example, with a prefix. For now, I have prefixed the class modules with xui. So Main is handled by xuiMain etc.
How do I finish an activity from the xui class module? Right now I have a sub in the activity and call it with CallSub, eg.
Is there a way to finish the activity directly?
I have a few questions, though.
It is recommended in the video tutorials to move most of the code from the activity to a shared class module. But for multiple activities, should I use a new class module for each activity or use the same class module for all?
Is there a best-practice for naming the corresponding class modules? For example, with a prefix. For now, I have prefixed the class modules with xui. So Main is handled by xuiMain etc.
How do I finish an activity from the xui class module? Right now I have a sub in the activity and call it with CallSub, eg.
B4X:
CallSub(Splash, "Finish")