I am trying to build an educational application for the three levels. I designed the application so that when you press the level button, 3 sections appear, and each section contains subjects, and each subject contains three files.... Each level has four years, meaning there is repetition in the buttons and vertical arrangements.... I want a way to avoid this much repetition in the programming block.... When you press the button, the vertical arrangement is either shown or hidden.
Store all you data/values in lists, and load the data to the buttons/labels/etc. on selection.
For example, if I have a list of apple varieties, I select Apples from a listpicker, and then a column of buttons is loaded with all the varieties. Selecting a button will ten display a description of the variety, or store the value to another list. If I also have a list of orange varieties, the same would apply to the same buttons/labels/.etc if I had selected Oranges.
Give me an example please aia
I am grateful to you
1 Like