I have a quick, for someone perhaps trivial question, about Tabs Layout.
I want to have 2 tabs. When starting the app, the app will automatically load tab number 1. Then, when user presses tab number 2, it will display new buttons, text boxes, etc., and the components from tab number 1 will get destroyed. Then, the same would apply vice-versa (going from tab number 2 to tab number 1).
So, above I described what I want. But what I was able to achieve is this:
The app starts on tab number 1. When the user clicks on tab number 2 it loads a completely new screen where the components are located. Then, when user clicks on tab number 1, again, the screen number 1 will be loaded and displayed.
I am thinking - is it possible to change the contents of each individual tab by not changing screens themselves?
This is the current code that I have for changing the tab:
Thank you everyone!