2
Hello, I’m starting to program something on android a few days ago (a very simple but extensive shell identification program, in it you have 5 options, within these 5 more some depending on the species, and within more options until you reach a specific shell with all the information from it), so I was creating layouts and activities for each species, class, etc... ended up giving about 200 layouts and activities and I still haven’t reached the end of the kkkk program and only then I thought "there’s something wrong with that" hehe. So I wonder if there is any other way to make a program of this type with options within options, totally offline, without using so many activities and layouts.
You can use custom... dialogs... dialogs... not necessarily always activities... the way of Cvoce to adapt the code that will say... if each option opens a page for example and Voce quizer only one Activity Voce creates dialogs... each opens a "screen" different but in reality only has 1...
– Daniel Gentil
The solution is to use Fragments, in the limit, an Activity may be sufficient for the entire application. https://developer.android.com/training/basics/fragments/index.html The layouts can be re-used, while the logic may have to be rewritten.
– Pedro Ferreira