Hi Erel, I am developing an APP which communicates to ESP8266. However my APP has 100 plus Buttons to send various commands to ESP8266...
These buttons are not distributed to different layouts. You can assume 20 buttons on Layout 1, 30 buttons on Layout 2 etc...
Now, my APP includes home page and has option to open layout. Say there are buttons having caption "Open Layout 1", "Open Layout 2" etc...
Based on option selected by home page, I am loading layout in one Activity model. I must declare all members in Global sub of the activity so there are 100 plus lines in Global sub. I would like to avoid the same.
Hope I could explain my project background.
Please be free and ask if any further details are required.