I have a very large project, both in screen size (1920 x 1080) and amount of code. I currently have a single Activity with various panels that are hidden and revealed when a button on the main Activity is clicked. Each panel has it's own functions to accomplish and data to display. Putting everything in this Activity is getting unmanagable. What I would like to do is have my main Activity and a series of modules that can be called when a button on the main Activity is clicked.
Of course, the problem is that views cannot be defined or manipulated outside of an Activity. I'm looking for suggestions on how to break this project up into modules that can perform functions and affect the appearance of the main Activity.
Of course, the problem is that views cannot be defined or manipulated outside of an Activity. I'm looking for suggestions on how to break this project up into modules that can perform functions and affect the appearance of the main Activity.